Last active
October 5, 2025 05:09
-
-
Save dd5md/04cfeef634c318e9c98936c4589802ce to your computer and use it in GitHub Desktop.
.zshrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # PATHS | |
| export ZSH=$HOME/.oh-my-zsh | |
| # THEME | |
| export ZSH_THEME='gnzh' | |
| # ALIAS | |
| alias cl='clear' | |
| alias gcr='git clone' | |
| alias cdh='cd ~/ && cl' | |
| alias szh='source ~/.zshrc' | |
| alias oz='subl ~/.oh-my-zsh' | |
| alias sz='subl ~/.zshrc && cl' | |
| alias wpsd='sshpass -p '4316' ssh -o StrictHostKeyChecking=no [email protected]' | |
| alias tft='cd ~/GitHub/TFTTool && python TFTTool.py -i tmp/NX8048P070_011.tft -t TJC8048X570_011 -f && mv tmp/NX8048P070_011_TJC8048X570_011.tft tmp/TJC8048X570_011.tft' | |
| alias uz='~/.oh-my-zsh/tools/upgrade.sh' | |
| # BREW ALIAS | |
| alias bcs='brew cleanup -s' | |
| alias bca='brew cleanup --prune=all' | |
| alias baud='brew cu --all --cleanup --yes && brew cleanup --prune=all && brew update && brew upgrade && brew doctor' | |
| alias baud2='brew bundle check || brew bundle --all --cleanup; brew bundle cleanup -f; brew cleanup --prune=all; brew upgrade' | |
| alias brew-deps='curl https://gist.githubusercontent.com/dd5md/364e05b8bad31afe7eeefbe3f8ecf6f3/raw > Brewfile ; brew bundle install' | |
| # SONSTIGE ALIAS | |
| alias gu='gem update' | |
| alias go='gem outdated' | |
| alias bu='bundle update' | |
| alias bi='bundle install' | |
| alias gus='gem update --system' | |
| alias rca='rvm cleanup all' | |
| alias rgl='rvm gemset list' | |
| alias rgd='rvm gemset delete' | |
| alias rgug='rvm gemset use global' | |
| alias rgud='rvm gemset use default' | |
| alias rgs='rvm get stable --auto-dotfiles' | |
| # NPM | |
| alias nf='npm fund' | |
| alias naf='npm audit fix' | |
| alias nis='npm install --save' | |
| alias nisd='npm install --save-dev' | |
| alias nus='npm uninstall --save' | |
| alias nusd='npm uninstall --save-dev' | |
| # MIDDLEMAN | |
| alias mit='middleman init -T ' | |
| alias mms='bundle exec middleman server' | |
| alias mmbc='NO_CONTRACTS=true bundle exec middleman build --clean' | |
| alias mmbv='NO_CONTRACTS=true bundle exec middleman build --verbose' | |
| # WEBSITES | |
| alias www="cd '${HOME}/Websites' && cl" | |
| alias cds="cd '${HOME}/Desktop/Screenshots' && cl" | |
| alias cdw="cd '${HOME}/Sites/dd5md.de' && cl" | |
| alias cdgn="cd '${HOME}/GitHub/NanoVNA-D' && cl" | |
| alias cdsm="cd '${HOME}/Sites/swr-meter.de' && cl" | |
| alias cdwd="cd '${HOME}/Sites/_Tests/mdc-mm-test' && cl" | |
| alias cdsf="cd '${HOME}/Sites/fahrschuleguth.de' && cl" | |
| alias cdwf="cd '${HOME}/Websites/fahrschuleguth.de' && cl" | |
| # OTHER ALIAS | |
| alias sua='softwareupdate --all --install --force' | |
| alias dns-restart='sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder' | |
| alias net-restart='sudo ifconfig en0 down; sudo ifconfig en0 up' | |
| # FFMPEG | MOV2MP4 | |
| # mov2mp4() { | |
| # ending='.mp4' | |
| # if [ -z ${2+x} ] | |
| # then | |
| # output=${1:0:-4} | |
| # output=$output$ending | |
| # else | |
| # output=$2 | |
| # fi | |
| # echo 'Starting to make' $output"\n------\n🎬 🎬 🎬\n"; | |
| # ffmpeg -i $1 -vcodec h264 -acodec aac -strict -2 -crf 20 $output | |
| # } | |
| # # FFMPEG ALIAS | |
| # alias vid="cd '${HOME}/Desktop/Screenshots' && mov2mp4 vid.mov && rm -rf vid.mov" | |
| # FFMPEG | MOV2MP4 | |
| mov2mp4() { | |
| ending='.mp4' | |
| if [ -z ${2+x} ] | |
| then | |
| output=${1:0:-4} | |
| output=$output$ending | |
| else | |
| output=$2 | |
| fi | |
| # FFMPEG START | |
| echo 'Starting to make' $output"\n------\n🎬 🎬 🎬\n"; | |
| ffmpeg -i $1 -vcodec h264 -acodec aac -strict -2 $output | |
| $output | |
| } | |
| # FFMPEG ALIAS | |
| alias vid="cd '${HOME}/Desktop/Screenshots' && mov2mp4 vid.mov && rm -rf vid.mov" | |
| # THEFUCK | |
| eval $(thefuck --alias) | |
| # MKDIRC | |
| function mkdirc () { | |
| mkdir "$@" && cd "$_"; | |
| } | |
| # HOMEBREW | |
| USE_POWERLINE=1 | |
| HIST_STAMPS='dd.mm.yyyy' | |
| ENABLE_CORRECTION=1 | |
| ZSH_DISABLE_COMPFIX=1 | |
| HOMEBREW_NO_ANALYTICS=1 | |
| HOMEBREW_NO_ENV_HINTS=1 | |
| COMPLETION_WAITING_DOTS=1 | |
| HOMEBREW_NO_INSTALL_CLEANUP=1 | |
| # PLUGINS | |
| plugins=( | |
| sudo | |
| brew | |
| git | |
| rvm | |
| gem | |
| ruby | |
| nvm | |
| node | |
| gulp | |
| iterm2 | |
| themes | |
| github | |
| git-lfs | |
| bundler | |
| thefuck | |
| sublime | |
| battery | |
| colorize | |
| zsh-syntax-highlighting | |
| zsh-autosuggestions | |
| zsh-completions | |
| ) | |
| # SOURCE | |
| source $ZSH/oh-my-zsh.sh | |
| # LANGUAGE | |
| export LANG='de_DE.UTF-8' | |
| # EDITOR | |
| if [[ -n $SSH_CONNECTION ]]; then | |
| export EDITOR='subl' | |
| else | |
| export EDITOR='subl' | |
| fi | |
| # NVM | |
| export NVM_DIR=~/.nvm | |
| # source $(brew --prefix nvm)/nvm.sh | |
| # [email protected] | |
| export PATH="$(brew --prefix)/opt/[email protected]/bin:$PATH" | |
| export LDFLAGS="-L/opt/homebrew/opt/[email protected]/lib" | |
| export CPPFLAGS="-I/opt/homebrew/opt/[email protected]/include" | |
| export PKG_CONFIG_PATH="/opt/homebrew/opt/[email protected]/lib/pkgconfig" | |
| # IMAGEMAGIC | |
| export PATH="/opt/homebrew/opt/imagemagick@6/bin:$PATH" | |
| export LDFLAGS="-L/opt/homebrew/opt/imagemagick@6/lib" | |
| export CPPFLAGS="-I/opt/homebrew/opt/imagemagick@6/include" | |
| export PKG_CONFIG_PATH="/opt/homebrew/opt/imagemagick@6/lib/pkgconfig" | |
| # PYTHON | |
| export PATH="/opt/homebrew/opt/[email protected]/libexec/bin:$PATH" | |
| export PATH="/opt/homebrew/opt/[email protected]/libexec/bin/python:$PATH" | |
| # PYENV | |
| export PYENV_ROOT="$HOME/.pyenv" | |
| command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" | |
| eval "$(pyenv init -)" | |
| # MAKE | |
| PATH="/opt/homebrew/opt/make/libexec/gnubin:$PATH" | |
| # LIBXML2 | |
| export PATH="/opt/homebrew/opt/libxml2/bin:$PATH" | |
| # JAVA_HOME | |
| export JAVA_HOME=$(/usr/libexec/java_home) | |
| export JAVA_HOME=$(/usr/libexec/java_home -v 22.0.2) | |
| export JAVA_HOME='/Library/Java/JavaVirtualMachines/jdk-22.jdk/Contents/Home' | |
| export PATH="$PATH:/Library/Java/JavaVirtualMachines/jdk-22.jdk/Contents/Home" | |
| # DOTNET | |
| export PATH=$PATH:$HOME/.dotnet | |
| export DOTNET_ROOT=$HOME/.dotnet | |
| export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools | |
| # TOKEN | |
| export HOMEBREW_GITHUB_API_TOKEN='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' | |
| # ITERM SHELL INTEGRATION | |
| test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh" | |
| # ADD RVM TO PATH | |
| export PATH="$PATH:$HOME/.rvm/bin" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment