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)
PATH="$HOME/.bin:$DOTFILES/bin:$PATH"
local bins=( "$ENABLED_DIR"/*/bin )
PATH="$DOTFILES/bin:$PATH"
bins=( "$ENABLED_DIR"/*/bin )
for bin in "${bins[@]}"; do
[[ -e "$bin" ]] && PATH="$bin:$PATH"
done

View file

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