shell/env.sh: move PATH init close to populator

This commit is contained in:
Henrik Lissner 2017-01-16 22:30:02 -05:00
parent 9d7451dd62
commit c9c4b4addd

View file

@ -1,7 +1,5 @@
# Loaded at the end of the initialization process
PATH="$HOME/.bin:$DOTFILES/bin:$PATH"
#
export EDITOR=$(is-callable nvim && echo 'nvim' || echo 'vim')
export VISUAL=$EDITOR
@ -9,9 +7,9 @@ export VISUAL=$EDITOR
#
export GPG_TTY=$(tty)
PATH="$HOME/.bin:$DOTFILES/bin:$PATH"
local bins=( "$ENABLED_DIR"/*/bin )
for bin in "${bins[@]}"; do
[[ -e "$bin" ]] && PATH="$bin:$PATH"
done
export PATH