Last active
June 9, 2024 16:31
-
-
Save maxgfr/5eadf70d16397eb03dc709f737529c91 to your computer and use it in GitHub Desktop.
My .zshrc config
This file contains 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 | |
} | |
export BUN_INSTALL="$HOME/.bun" | |
export PATH="$BUN_INSTALL/bin:$PATH" | |
export PATH=/usr/local/anaconda3/bin:$PATH | |
export PATH=/opt/homebrew/anaconda3/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