Last active
January 29, 2026 12:00
-
-
Save maxgfr/2708f28f370d0064a232547de6674193 to your computer and use it in GitHub Desktop.
My personal .zshrc setup, optimized for daily development with custom aliases, functions, and quality-of-life improvements.
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
| export ZSH="/Users/max/.oh-my-zsh" | |
| ZSH_THEME="robbyrussell" | |
| plugins=(git | |
| zsh-autosuggestions | |
| zsh-syntax-highlighting | |
| ) | |
| source $ZSH/oh-my-zsh.sh | |
| push() { | |
| git add -A && git commit -m $1 $2 && git push $2 | |
| } | |
| clean() { | |
| git fetch -p && for branch in $(git for-each-ref --format '%(refname) %(upstream:track)' refs/heads | awk '$2 == "[gone]" {sub("refs/heads/", "", $1); print $1}'); do git branch -D $branch; done | |
| } | |
| update() { | |
| brew update && brew upgrade && brew cleanup && omz update && hasura update-cli && bun upgrade && rustup update stable && yt-dlp -U | |
| } | |
| export BUN_INSTALL="$HOME/.bun" | |
| export PATH="$BUN_INSTALL/bin:$PATH" | |
| export PATH="$HOME/.cargo/env:$PATH" | |
| export PATH="$PATH:/Users/max/.local/bin" | |
| eval "$(direnv hook zsh)" | |
| eval "$(fnm env --use-on-cd)" | |
| eval "$(thefuck --alias)" | |
| eval "$(starship init zsh)" | |
| eval "$(zoxide init zsh)" | |
| eval "$(atuin init zsh)" | |
| [ -s "/Users/max/.bun/_bun" ] && source "/Users/max/.bun/_bun" | |
| [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh | |
| alias vi='nvim' | |
| alias vim='nvim' | |
| alias find='fd' | |
| alias cat='bat' | |
| alias ls='eza' | |
| alias cd='z' | |
| alias nvm='fnm' | |
| alias youtube-dl='yt-dlp' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment