.zshrc hinzugefügt

This commit is contained in:
2025-01-28 08:57:22 +00:00
parent 9c425d029a
commit 1fb3db2603

41
.zshrc Normal file
View File

@@ -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