Skip to content

Instantly share code, notes, and snippets.

@maxgfr
Last active March 14, 2024 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxgfr/5eadf70d16397eb03dc709f737529c91 to your computer and use it in GitHub Desktop.
Save maxgfr/5eadf70d16397eb03dc709f737529c91 to your computer and use it in GitHub Desktop.
My .zshrc config
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
}
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
eval "$(direnv hook zsh)"
eval "$(fnm env --use-on-cd)"
eval "$(thefuck --alias)"
eval "$(starship init zsh)"
eval "$(zoxide init zsh)"
[ -s "/Users/max/.bun/_bun" ] && source "/Users/max/.bun/_bun"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
alias kdb='zx https://raw.githubusercontent.com/SocialGouv/sre-scripts/master/src/kdb/kdb.mjs'
alias vi='nvim'
alias vim='nvim'
alias find='fd'
alias cat='bat'
alias ls='eza'
alias cd='z'
bindkey "\e[1;3D" backward-word # ⌥←
bindkey "\e[1;3C" forward-word # ⌥→
bindkey "^[[1;9D" beginning-of-line # cmd+←
bindkey "^[[1;9C" end-of-line # cmd+→
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment