3 ms·
‘typeset -U path’ would be a more simple alternative.
by soraminazuki 7y ago
‘typeset -U path’ would be a more simple alternative.
- bloopernova 7y agoYeah, 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" )