Skip to content

Instantly share code, notes, and snippets.

@abatilo
Created March 21, 2024 22:09
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 abatilo/a8370afd5eef0805ad9597bd0823a9dd to your computer and use it in GitHub Desktop.
Save abatilo/a8370afd5eef0805ad9597bd0823a9dd to your computer and use it in GitHub Desktop.
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="pygmalion"
plugins=(
mise
fzf
git
kubectl
)
eval "$(~/.local/bin/mise activate zsh)"
source $ZSH/oh-my-zsh.sh
# vim related
set -o vi
alias vi='nvim'
alias vim='nvim'
export EDITOR=nvim
export PATH="$(mise x -- go env GOPATH)/bin:$PATH"
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
# Use ripgrep for fzf
export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow -g "!{.git,node_modules}/*" 2> /dev/null'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
# Share history across terminals
setopt INC_APPEND_HISTORY
# Convenience
octo() { vim -c "Octo pr edit $1" }
# Enable fzf keybindings
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment