From 1fb3db2603d8e247100d0a5ed264262a7de815d3 Mon Sep 17 00:00:00 2001 From: zode Date: Tue, 28 Jan 2025 08:57:22 +0000 Subject: [PATCH] =?UTF-8?q?.zshrc=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .zshrc | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .zshrc 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