From 2ecd846ad62c86a9496022168d3f43177c711d0f Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Thu, 4 Jul 2024 19:55:33 +0200 Subject: [PATCH] nvm shit and home alias --- .zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.zshrc b/.zshrc index 2fa6692..32d155b 100644 --- a/.zshrc +++ b/.zshrc @@ -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