Place /usr/local/{,s}bin later in PATH
This commit is contained in:
parent
fe077563a9
commit
63ce7bf817
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue