mirror of
https://github.com/mentos1386/dotfiles.git
synced 2024-11-26 09:07:52 +00:00
41 lines
1,007 B
Bash
41 lines
1,007 B
Bash
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
|
|
zplug "lukechilds/zsh-nvm"
|
|
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
|
|
fi
|
|
zplug load
|
|
|
|
# History improvements
|
|
export HISTFILE=~/.zsh_history
|
|
export HISTFILESIZE=1000000000
|
|
export HISTSIZE=1000000000
|
|
export SAVEHIST=100000
|
|
setopt INC_APPEND_HISTORY
|
|
setopt HIST_IGNORE_ALL_DUPS
|
|
# Vimode
|
|
bindkey -v
|
|
bindkey -M vicmd "?" history-incremental-search-backward
|
|
bindkey -M vicmd "/" history-incremental-search-forward
|
|
|
|
# PATH
|
|
export PATH=$PATH:$HOME/.bin:$HOME/go/bin
|
|
|
|
# Starship
|
|
export STARSHIP_CONFIG=~/.starship.toml
|
|
eval "$(starship init zsh)"
|