zsh: Move path modification to zshenv
Alan Pearce alan@alanpearce.uk
Fri, 21 Apr 2017 16:53:14 +0200
2 files changed, 10 insertions(+), 10 deletions(-)
M zsh/.config/zsh/.zshenv → zsh/.config/zsh/.zshenv
@@ -46,6 +46,16 @@ arch=386 ;; 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
M zsh/.config/zsh/.zshrc → 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)