Prefix to PATH rather than postfix

This commit is contained in:
Max O'Cull 2024-07-03 00:34:06 -04:00
parent 1f03039e85
commit 364258fef4
No known key found for this signature in database
GPG Key ID: F8362D782F70AEAB

View File

@ -86,7 +86,7 @@ _zsh_nvm_lazy_load() {
# Add it to path if it doesn't already exist.
if [ -d "$NVM_CACHE_LOAD_PATH_NVM" ] && [[ ":$PATH:" != *":$NVM_CACHE_LOAD_PATH_NVM:"* ]]; then
export PATH="${PATH:+"$PATH:"}${NVM_CACHE_LOAD_PATH_NVM}"
export PATH="${NVM_CACHE_LOAD_PATH_NVM}${PATH:+":$PATH"}"
fi
fi