add .zshenv
This commit is contained in:
parent
c24ed52238
commit
cb4c486777
@ -27,14 +27,6 @@ if [ -d "$HOME/.npm-global/bin" ] ; then
|
||||
export PATH="$HOME/.npm-global/bin:$PATH"
|
||||
fi
|
||||
|
||||
if [ -d "$HOME/.go/bin" ] ; then
|
||||
export PATH="$HOME/.go/bin:$PATH"
|
||||
fi
|
||||
|
||||
if [ -d "$HOME/.go" ] ; then
|
||||
export GOPATH="$HOME/.go"
|
||||
fi
|
||||
|
||||
for TMPDIR in "$TMPDIR" "$TMP" /tmp /var/tmp
|
||||
do
|
||||
test -d "$TMPDIR" && break
|
||||
|
||||
6
home/user/.config/zsh/.zshrc
Normal file
6
home/user/.config/zsh/.zshrc
Normal file
@ -0,0 +1,6 @@
|
||||
# .zshrc by TheK4n
|
||||
# https://github.com/TheK4n/dotfiles
|
||||
|
||||
if [ -f "$ZDOTDIR/sourcer" ]; then
|
||||
source "$ZDOTDIR/sourcer"
|
||||
fi
|
||||
@ -3,22 +3,18 @@ _so() {
|
||||
}
|
||||
|
||||
_so /etc/zsh_command_not_found
|
||||
_so "$HOME/.config/zsh/options"
|
||||
_so "$HOME/.config/zsh/completion"
|
||||
_so "$HOME/.config/zsh/history"
|
||||
_so "$HOME/.config/zsh/prompt"
|
||||
_so "$HOME/.config/zsh/other"
|
||||
_so "$HOME/.config/zsh/plugin"
|
||||
_so "$HOME/.config/zsh/aliases"
|
||||
_so "$ZDOTDIR/options"
|
||||
_so "$ZDOTDIR/completion"
|
||||
_so "$ZDOTDIR/history"
|
||||
_so "$ZDOTDIR/prompt"
|
||||
_so "$ZDOTDIR/other"
|
||||
_so "$ZDOTDIR/plugin"
|
||||
_so "$ZDOTDIR/aliases"
|
||||
|
||||
_so "$HOME/.config/bash/aliases"
|
||||
_so "$HOME/.config/bash/completion"
|
||||
_so "$HOME/.config/bash/export"
|
||||
_so "$HOME/.config/bash/functions"
|
||||
_so "$HOME/.config/bash/hosts/$HOST"
|
||||
_so "$XDG_CONFIG_HOME/bash/aliases"
|
||||
_so "$XDG_CONFIG_HOME/bash/completion"
|
||||
_so "$XDG_CONFIG_HOME/bash/functions"
|
||||
_so "$XDG_CONFIG_HOME/bash/hosts/$HOST"
|
||||
|
||||
|
||||
_so "$HOME/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
||||
|
||||
|
||||
_sod "$HOME/.config/zsh/zshrc.d"
|
||||
_sod "$ZDOTDIR/zshrc.d"
|
||||
|
||||
9
home/user/.zshenv
Normal file
9
home/user/.zshenv
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
_so() {
|
||||
[ -r "$1" ] && [ -f "$1" ] && source "$1"
|
||||
}
|
||||
|
||||
export XDG_CONFIG_HOME="$HOME/.config"
|
||||
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
|
||||
|
||||
_so "$XDG_CONFIG_HOME/bash/export"
|
||||
@ -1,6 +0,0 @@
|
||||
# .zshrc by TheK4n
|
||||
# https://github.com/TheK4n/dotfiles
|
||||
|
||||
if [ -f $HOME/.config/zsh/sourcer ]; then
|
||||
source $HOME/.config/zsh/sourcer
|
||||
fi
|
||||
2
install
2
install
@ -12,7 +12,7 @@ export SUB
|
||||
|
||||
declare -r -A TARGETS=(
|
||||
["bash"]=".config/bash .bashrc .profile"
|
||||
["zsh"]="%bash .config/zsh .zshrc .zprofile .zlogout .inputrc"
|
||||
["zsh"]="%bash .config/zsh .zshenv .zprofile .zlogout .inputrc"
|
||||
["tmux"]=".tmux.conf"
|
||||
["alacritty"]=".config/alacritty"
|
||||
["nvim"]=".config/nvim .local/bin/vim_askpass_helper .local/bin/vim_askpass_helper_python"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user