mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-14 20:29:51 +00:00
nvm plugin improvements (#5265)
* Export $NVM_DIR if it doesn't exist and use it when looking for nvm * Use $NVM_DIR when looking for nvm for completion * Use $NVM_DIR when looking for nvm in nvm_prompt_info
This commit is contained in:
committed by
Marc Cornellà
parent
7654b16b39
commit
a7de0fabd7
@@ -1,7 +1,7 @@
|
||||
#compdef nvm
|
||||
#autoload
|
||||
|
||||
[[ -s ~/.nvm/nvm.sh ]] || return 0
|
||||
[[ -f "$NVM_DIR/nvm.sh" ]] || return 0
|
||||
|
||||
local -a _1st_arguments
|
||||
_1st_arguments=(
|
||||
|
||||
Reference in New Issue
Block a user