ZSH: Restructured path settings
This commit is contained in:
parent
360e82abe9
commit
7014435399
@ -4,12 +4,11 @@ typeset -U path # No duplicates
|
|||||||
path=()
|
path=()
|
||||||
|
|
||||||
_prepath() {
|
_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 /bin /usr/sbin /sbin /usr/local/bin /usr/local/sbin # BSD and macOS
|
_prepath /usr/bin /bin /usr/sbin /sbin /usr/local/bin /usr/local/sbin # BSD and macOS
|
||||||
|
Loading…
Reference in New Issue
Block a user