Created
March 21, 2024 22:09
-
-
Save abatilo/a8370afd5eef0805ad9597bd0823a9dd to your computer and use it in GitHub Desktop.
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="$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