summaryrefslogtreecommitdiff
path: root/14_Nvm.zsh
diff options
context:
space:
mode:
Diffstat (limited to '14_Nvm.zsh')
-rw-r--r--14_Nvm.zsh22
1 files changed, 22 insertions, 0 deletions
diff --git a/14_Nvm.zsh b/14_Nvm.zsh
new file mode 100644
index 0000000..5e66336
--- /dev/null
+++ b/14_Nvm.zsh
@@ -0,0 +1,22 @@
+##
+## Part of configuration files for Zsh 4
+## by Hugues Hiegel <hugues@hiegel.fr>
+##
+## NO WARRANTY PROVIDED, USE AT YOUR OWN RISKS
+##
+## You are encouraged to use, modify, and redistribute
+## these files with or without this notice.
+##
+
+# NVM stuff
+NVM_ENV=~/.nvm/nvm.sh
+if [ -r ${NVM_ENV} ]
+then
+ source ${NVM_ENV}
+ _nvm_env() {
+ which nvm 2>&- >&- && echo "nvm:$(nvm current)"
+ }
+
+ PS1_TASKBAR+=(_nvm_env)
+fi
+