all repos — archive/dotfiles @ c5eb5cf892785852c5bfe2ac672263f7e6696160

Superseded by nixfiles

zsh: Move path modification to zshenv
Alan Pearce alan@alanpearce.uk
Fri, 21 Apr 2017 16:53:14 +0200
commit

c5eb5cf892785852c5bfe2ac672263f7e6696160

parent

c7548f30622665198145067d32e44c2348ff7fbc

2 files changed, 10 insertions(+), 10 deletions(-)

jump to
M zsh/.config/zsh/.zshenvzsh/.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/.zshrczsh/.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)