Skip to content

Commit

Permalink
Add nvm
Browse files Browse the repository at this point in the history
  • Loading branch information
GMadorell committed Jul 4, 2022
1 parent d7995da commit 4132677
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
PHP_MODE=0
PYTHON_MODE=1
RUBY_MODE=0
JS_MODE=1

# Setup zsh with oh-my-zsh
export ZSH=$HOME/.oh-my-zsh
Expand Down Expand Up @@ -164,6 +165,17 @@ if (($PHP_MODE)) ; then
setup_php
fi

# JS (JavaScript) Setup
function setup_js() {
export NVM_DIR="$HOME/.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
}

if (($JS_MODE)) ; then
setup_js
fi

# Scala setup
function kill_sbt() { ps aux | grep java | grep bin/sbt-launch.jar | awk '{print $2}' | xargs kill -9 ; }
alias fucksbt="kill_sbt"
Expand Down

0 comments on commit 4132677

Please sign in to comment.