Place /usr/local/{,s}bin later in PATH

This commit is contained in:
Henrik Lissner 2017-03-19 16:25:42 -04:00
parent fe077563a9
commit 63ce7bf817
2 changed files with 4 additions and 4 deletions

View file

@ -7,8 +7,8 @@ export VISUAL=$EDITOR
# #
export GPG_TTY=$(tty) export GPG_TTY=$(tty)
PATH="$HOME/.bin:$DOTFILES/bin:$PATH" PATH="$DOTFILES/bin:$PATH"
local bins=( "$ENABLED_DIR"/*/bin ) 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

View file

@ -1,10 +1,10 @@
source "$HOME/.dotfiles/shell/common.sh"
## Paths ## Paths
# Ensure path arrays do not contain duplicates. # Ensure path arrays do not contain duplicates.
typeset -gU cdpath fpath mailpath path typeset -gU cdpath fpath mailpath path
path=( /usr/local/{,s}bin $path ) path=( /usr/local/{,s}bin $path )
source "$HOME/.dotfiles/shell/common.sh"
load shell/zsh/config.zsh load shell/zsh/config.zsh
loadall env.zsh loadall env.zsh