shell/env.sh: move PATH init close to populator
This commit is contained in:
parent
9d7451dd62
commit
c9c4b4addd
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue