mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-27 03:05:39 +01:00
Modified nvm plugin to fit my needs.
This commit is contained in:
parent
ed0c5b6875
commit
1b3f4c1cd6
5 changed files with 37 additions and 10 deletions
11
custom/plugins/nvm/nvm.plugin.zsh
Normal file
11
custom/plugins/nvm/nvm.plugin.zsh
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# The addition 'nvm install' attempts in ~/.profile
|
||||
|
||||
if [ -s ~/.nvm/nvm.sh ]; then
|
||||
. $HOME/.nvm/nvm.sh
|
||||
|
||||
# Check if the NODE_VERSION environment variable is set,
|
||||
# if so trigger nvm to use this.
|
||||
if [[ $NODE_VERSION != "" ]]; then
|
||||
nvm use $NODE_VERSION > /dev/null
|
||||
fi
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue