mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-24 04:29:25 +02:00
add support for different nvm directory
This commit is contained in:
parent
e55c715508
commit
40c7a52e34
2 changed files with 1 additions and 29 deletions
|
|
@ -1,26 +0,0 @@
|
||||||
#compdef nvm
|
|
||||||
#autoload
|
|
||||||
|
|
||||||
[[ -s ~/.nvm/nvm.sh ]] || return 0
|
|
||||||
|
|
||||||
local -a _1st_arguments
|
|
||||||
_1st_arguments=(
|
|
||||||
'help:show help'
|
|
||||||
'install:download and install a version'
|
|
||||||
'uninstall:uninstall a version'
|
|
||||||
'use:modify PATH to use version'
|
|
||||||
'run:run version with given arguments'
|
|
||||||
'ls:list installed versions or versions matching a given description'
|
|
||||||
'ls-remote:list remote versions available for install'
|
|
||||||
'deactivate:undo effects of NVM on current shell'
|
|
||||||
'alias:show or set aliases'
|
|
||||||
'unalias:deletes an alias'
|
|
||||||
'copy-packages:install global NPM packages to current version'
|
|
||||||
)
|
|
||||||
|
|
||||||
_arguments -C '*:: :->subcmds' && return 0
|
|
||||||
|
|
||||||
if (( CURRENT == 1 )); then
|
|
||||||
_describe -t commands "nvm subcommand" _1st_arguments
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
@ -1,3 +1 @@
|
||||||
# The addition 'nvm install' attempts in ~/.profile
|
[[ -s $NVM_DIR/nvm.sh ]] && . $NVM_DIR/nvm.sh
|
||||||
|
|
||||||
[[ -s ~/.nvm/nvm.sh ]] && . ~/.nvm/nvm.sh
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue