diff options
author | Alan Pearce | 2017-04-21 16:53:14 +0200 |
---|---|---|
committer | Alan Pearce | 2017-04-21 16:53:14 +0200 |
commit | c5eb5cf892785852c5bfe2ac672263f7e6696160 (patch) | |
tree | 2c983aeb8aeea2edad9c953f3dd143c7584a9973 /zsh | |
parent | c7548f30622665198145067d32e44c2348ff7fbc (diff) | |
download | nixfiles-c5eb5cf892785852c5bfe2ac672263f7e6696160.tar.lz nixfiles-c5eb5cf892785852c5bfe2ac672263f7e6696160.tar.zst nixfiles-c5eb5cf892785852c5bfe2ac672263f7e6696160.zip |
zsh: Move path modification to zshenv
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/.config/zsh/.zshenv | 10 | ||||
-rw-r--r-- | zsh/.config/zsh/.zshrc | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/zsh/.config/zsh/.zshenv b/zsh/.config/zsh/.zshenv index 512dc56e..7569f527 100644 --- a/zsh/.config/zsh/.zshenv +++ b/zsh/.config/zsh/.zshenv @@ -46,6 +46,16 @@ then ;; esac + if [[ ${path[(I)$HOME/bin ]} ]] + then + path+=($HOME/bin) + fi + + if [[ ${path[(I)$HOME/.local/bin ]} ]] + then + path+=($HOME/.local/bin) + fi + export GTAGSCONF=~/.globalrc export GTAGSLABEL=ctags fi diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index e4c9239f..db32627a 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -24,16 +24,6 @@ HISTFILE=${XDG_CACHE_HOME:=$HOME/.cache}/zsh/history WORDCHARS=${${WORDCHARS//[-.]}//[\/]} -if [[ ${path[(I)$HOME/bin ]} ]] -then - path+=($HOME/bin) -fi - -if [[ ${path[(I)$HOME/.local/bin ]} ]] -then - path+=($HOME/.local/bin) -fi - if [[ -d /opt/local/share/zsh/site-functions ]] then fpath+=(/opt/local/share/zsh/site-functions) |