Files
dotfiles/.zshrc
2025-01-28 08:58:15 +00:00

41 lines
1.2 KiB
Bash

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 la="ls -la --color"
STARTUP_FILE="~/.startup.sh"
if [ -f $STARTUP_FILE ]; then
STARTUP_FILE
fi