mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-09 02:24:03 +01:00
Add nvm plugin
This commit is contained in:
parent
c2ae9e09ca
commit
ced2d9cc34
3 changed files with 529 additions and 0 deletions
19
plugins/nvm/nvm.plugin.zsh
Executable file
19
plugins/nvm/nvm.plugin.zsh
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
# NVM Wrapper
|
||||
|
||||
# Auto detect the NVM_DIR
|
||||
if [ ! -d "$NVM_DIR" ]; then
|
||||
export NVM_DIR=~/.nvm
|
||||
fi
|
||||
|
||||
. $ZSH/plugins/nvm/nvm.bash
|
||||
|
||||
if [ "$(autoload | grep bashcompinit)" = "" ]; then
|
||||
echo "hohoho"
|
||||
autoload -Uz bashcompinit
|
||||
bashcompinit
|
||||
else
|
||||
echo "hehehe"
|
||||
fi
|
||||
|
||||
. $ZSH/plugins/nvm/nvm_bash_completion
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue