mirror of
https://github.com/lukechilds/zsh-nvm.git
synced 2025-01-30 09:47:14 +08:00
Prefix to PATH rather than postfix
This commit is contained in:
parent
1f03039e85
commit
364258fef4
@ -86,7 +86,7 @@ _zsh_nvm_lazy_load() {
|
|||||||
|
|
||||||
# Add it to path if it doesn't already exist.
|
# Add it to path if it doesn't already exist.
|
||||||
if [ -d "$NVM_CACHE_LOAD_PATH_NVM" ] && [[ ":$PATH:" != *":$NVM_CACHE_LOAD_PATH_NVM:"* ]]; then
|
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user