From 92e66e0ebeebb44ebc0b5ec07db4f957412b1f83 Mon Sep 17 00:00:00 2001 From: Mathis Date: Sun, 11 Jul 2021 16:06:47 +0200 Subject: [PATCH] Update zshrc --- .zshrc | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index 291a9b3..aac9aee 100644 --- a/.zshrc +++ b/.zshrc @@ -6,9 +6,11 @@ export PATH=$HOME/bin:$PATH # Set Golang export PATH=$PATH:/usr/local/go/bin -export GOPATH=$HOME/Projects/golang/lib +export GOPATH=$HOME/Projects/golang export PATH=$PATH:$GOPATH/bin -export GOPATH=$GOPATH:$HOME/Projects/golang/code + +# Set Kubeconfig +export KUBECONFIG=$KUBECONFIG:$HOME/Projects/rddl1-kubeconfig.yaml # Load the oh-my-zsh's library. antigen use oh-my-zsh @@ -50,3 +52,28 @@ else fi unset __conda_setup # <<< conda initialize <<< +# +# >>> Lazy NVM >>> + +lazynvm() { + unset -f nvm node npm + export NVM_DIR=~/.nvm + [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm +} + +nvm() { + lazynvm + nvm $@ +} + +node() { + lazynvm + node $@ +} + +npm() { + lazynvm + npm $@ +} + +# <<< Lazy NVM <<<