From f053600aa8da435486acb81fa9a6dad46f5d1ec2 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 18 Oct 2019 14:47:08 +0200 Subject: stuff... --- 14_Nvm.zsh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 14_Nvm.zsh (limited to '14_Nvm.zsh') 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 +## +## 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 + -- cgit v1.2.3