Modified zsh path
This commit is contained in:
parent
fa9ff1268e
commit
ef97038e08
@ -7,15 +7,13 @@ _prepath() {
|
|||||||
for dir in "$@"; do
|
for dir in "$@"; do
|
||||||
dir=${dir:A}
|
dir=${dir:A}
|
||||||
[[ ! -d "$dir" ]] && return
|
[[ ! -d "$dir" ]] && return
|
||||||
path=("$dir" $path[@])
|
#path=("$dir" $path[@])
|
||||||
|
path=("$dir" $path)
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
_prepath /usr/bin /usr/sbin /sbin /Library/Apple/usr/bin # macOS
|
_prepath /usr/bin /bin /usr/sbin /sbin /usr/local/bin /usr/local/sbin # BSD and macOS
|
||||||
_prepath /usr/sbin /sbin # FreeBSD
|
_prepath /opt/homebrew/bin /opt/homebrew/sbin # Homebrew on Apple Silicon
|
||||||
_prepath /usr/local/bin /bin /usr/local/sbin # General
|
_prepath ~/bin ~/.local/bin # $HOME
|
||||||
_prepath /opt/homebrew/bin /opt/homebrew/sbin # Homebrew an Apple Silicon
|
|
||||||
_prepath ~/.local/bin
|
|
||||||
_prepath ~/bin
|
|
||||||
|
|
||||||
unfunction _prepath
|
unfunction _prepath
|
||||||
|
Loading…
Reference in New Issue
Block a user