2021-04-06 19:56:10 +00:00
|
|
|
source ~/.zplug/init.zsh
|
|
|
|
|
|
|
|
# PLUGINS
|
|
|
|
export ZSH_TMUX_AUTOSTART=true
|
|
|
|
if ! zplug check; then
|
|
|
|
zplug install
|
|
|
|
fi
|
|
|
|
zplug "plugins/git", from:oh-my-zsh
|
|
|
|
zplug "plugins/gitfast", from:oh-my-zsh
|
|
|
|
zplug "plugins/git-extras", from:oh-my-zsh
|
|
|
|
zplug "plugins/kubectl", from:oh-my-zsh
|
2021-04-11 12:10:12 +00:00
|
|
|
zplug "lukechilds/zsh-nvm"
|
2021-04-06 19:56:10 +00:00
|
|
|
zplug "plugins/terraform", from:oh-my-zsh
|
|
|
|
zplug "plugins/tmux", from:oh-my-zsh
|
|
|
|
zplug "plugins/common-aliases", from:oh-my-zsh
|
|
|
|
if ! zplug check --verbose; then
|
|
|
|
printf "Install? [y/N]: "
|
|
|
|
if read -q; then
|
|
|
|
echo; zplug install
|
|
|
|
fi
|
2021-03-20 22:36:25 +00:00
|
|
|
fi
|
2022-01-15 19:07:12 +00:00
|
|
|
|
|
|
|
# If not kitty
|
|
|
|
# Then don't start tmux.
|
|
|
|
if [[ -z $KITTY_PID ]];
|
|
|
|
then
|
|
|
|
export ZSH_TMUX_AUTOSTART=false
|
|
|
|
fi
|
|
|
|
|
2021-04-06 19:56:10 +00:00
|
|
|
zplug load
|
2021-03-20 22:36:25 +00:00
|
|
|
|
|
|
|
# History improvements
|
|
|
|
export HISTFILE=~/.zsh_history
|
|
|
|
export HISTFILESIZE=1000000000
|
|
|
|
export HISTSIZE=1000000000
|
|
|
|
export SAVEHIST=100000
|
|
|
|
setopt INC_APPEND_HISTORY
|
|
|
|
setopt HIST_IGNORE_ALL_DUPS
|
2021-04-06 19:56:10 +00:00
|
|
|
# Vimode
|
|
|
|
bindkey -v
|
|
|
|
bindkey -M vicmd "?" history-incremental-search-backward
|
|
|
|
bindkey -M vicmd "/" history-incremental-search-forward
|
2021-03-20 22:36:25 +00:00
|
|
|
|
2022-05-10 18:32:18 +00:00
|
|
|
# Aliases
|
|
|
|
alias gicm="git checkout main && git pull"
|
|
|
|
alias gic="git checkout"
|
|
|
|
|
2021-03-20 22:36:25 +00:00
|
|
|
# PATH
|
2021-04-06 19:56:10 +00:00
|
|
|
export PATH=$PATH:$HOME/.bin:$HOME/go/bin
|
2021-03-20 22:36:25 +00:00
|
|
|
|
2021-04-30 09:01:56 +00:00
|
|
|
# ENV
|
|
|
|
export EDITOR=vim
|
|
|
|
|
2021-03-20 22:36:25 +00:00
|
|
|
# Starship
|
|
|
|
export STARSHIP_CONFIG=~/.starship.toml
|
|
|
|
eval "$(starship init zsh)"
|