From a4472a9e7298e059b66fe66d1ecc5775065da74c Mon Sep 17 00:00:00 2001 From: earnest ma Date: Sat, 24 Jul 2021 10:24:23 -0400 Subject: [PATCH] Update shell --- .config/shell/aliases.sh | 2 ++ .config/shell/start.sh | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.config/shell/aliases.sh b/.config/shell/aliases.sh index b73d768..12819ef 100644 --- a/.config/shell/aliases.sh +++ b/.config/shell/aliases.sh @@ -7,6 +7,8 @@ alias camon='sudo modprobe uvcvideo' alias pu='git push' alias st='git st' +alias src_common='source ~/.config/shell/start.sh' + foldersize(){ du -sh $@ } diff --git a/.config/shell/start.sh b/.config/shell/start.sh index 3ab620c..b770a7b 100755 --- a/.config/shell/start.sh +++ b/.config/shell/start.sh @@ -40,6 +40,10 @@ export GOPATH="$XDG_DATA_HOME/go" path_add "$GOPATH/bin" # node, npm, yarn +export NVM_DIR="$HOME/.config/nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion + export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"