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