diff --git a/.zshrc b/.zshrc new file mode 100644 index 0000000..0bf73d6 --- /dev/null +++ b/.zshrc @@ -0,0 +1,41 @@ +export ZSH="$HOME/.oh-my-zsh" + +ZSH_THEME="robbyrussell" + +plugins=(git docker zsh-vi-mode) + +source $ZSH/oh-my-zsh.sh + +################################################################################################ +# FOR MACBOOK +################################################################################################ + +if [[ "$OSTYPE" == "darwin"* ]]; then + + # init homebrew + export LIBRARY_PATH="$LIBRARY_PATH:/opt/homebrew/lib" + + # init maven from IntelliJ + alias mvn="~/Applications/IntelliJ\ IDEA\ Ultimate.app/Contents/plugins/maven/lib/maven3/bin/mvn" + + # include postgres binaries installed from homebrew + export PATH="/usr/local/opt/libpq/bin:$PATH" +fi + +# init NVM +if command -v nvm 2>&1 >/dev/null; then + 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 +fi + +################################################################################################ +# Common Aliases +################################################################################################ + +alias ls="ls -la --color" + +STARTUP_FILE="~/.startup.sh" +if [ -f $STARTUP_FILE ]; then + STARTUP_FILE +fi \ No newline at end of file