Re:Show HN: Z shell configuration, zsh startup files, when t...
by soraminazuki on Thursday October 17, 2019 @08:24AM
(#21281248)
‘typeset -U path’ would be a more simple alternative.
[ Parent
| on HN ]
Re:Show HN: Z shell configuration, zsh startup files, when t...
by bloopernova on Thursday October 17, 2019 @12:08PM
(#21283480)
Yeah, I like this in zsh:
# Only allow unique entries in the PATH variable
typeset -U path
# Easier to read PATH variable modification:
path+=(
"${JAVA_HOME}/bin"
"${GOPATH}/bin"
)