nvm shit and home alias

This commit is contained in:
Christoph J. Scherr 2024-07-04 19:55:33 +02:00
parent f695029b5f
commit 2ecd846ad6
1 changed files with 5 additions and 0 deletions

5
.zshrc
View File

@ -42,6 +42,7 @@ alias ipb="ip -brief"
alias psa="ps -eadf"
alias fsize="stat --printf='%s'"
alias rg="rg --no-ignore"
alias home="cd $HOME"
### Functions
function largefiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(G|T|P|E)\s" }
@ -218,3 +219,7 @@ if [ -d $HOME/.pyenv ]; then
eval "$(pyenv virtualenv-init - zsh)"
pyenv activate std 2> /dev/null > /dev/null
fi
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