replace antigen with antibody

feature/symbol-search
bretello 2020-02-12 17:54:07 +01:00
parent 8eaa9fbde9
commit 7652cd81e5
2 changed files with 18 additions and 34 deletions

View File

@ -0,0 +1,12 @@
robbyrussell/oh-my-zsh
robbyrussell/oh-my-zsh path:plugins/git
robbyrussell/oh-my-zsh path:plugins/vi-mode
robbyrussell/oh-my-zsh path:plugins/kubectl
robbyrussell/oh-my-zsh path:plugins/common-aliases
robbyrussell/oh-my-zsh path:plugins/sudo
robbyrussell/oh-my-zsh path:plugins/zsh-navigation-tools
robbyrussell/oh-my-zsh path:plugins/colored-man-pages
zdharma/fast-syntax-highlighting
zsh-users/zsh-completions
zsh-users/zsh-autosuggestions
djui/alias-tips

View File

@ -1,38 +1,10 @@
# Check for update, set DISABLE_UPDATE_PROMPT=yes to disable the prompt and automatically update
env ZSH=$ZSH DISABLE_UPDATE_PROMPT=$DISABLE_UPDATE_PROMPT DOTFILES=$DOTFILES zsh -f $DOTFILES/check_for_update.sh
env DISABLE_UPDATE_PROMPT=$DISABLE_UPDATE_PROMPT DOTFILES=$DOTFILES zsh -f $DOTFILES/check_for_update.sh
# antigen plugins
antigen_plugins="git
vi-mode
common-alias
sudo
zsh-navigation-tools
colored-man-pages
zdharma/fast-syntax-highlighting
zsh-users/zsh-autosuggestions
djui/alias-tips
"
uname=$(uname -a)
if [[ $uname == *"Darwin"* ]]; then
os_extra="osx"
elif [[ $uname == *"ARCH"* || $uname == *"MANJARO"* ]]; then
os_extra="archlinux systemd"
elif [[ $uname == *"Debian"* ]]; then
os_extra="debian systemd"
fi
plugins="$antigen_plugins $os_extra"
antigen use oh-my-zsh
antigen bundles <<EOBUNDLES
$plugins
EOBUNDLES
theme=brethil
antigen theme $theme
antigen apply
autoload -Uz compinit
compinit
ZSH=$(antibody path robbyrussell/oh-my-zsh)
antibody bundle < $DOTFILES/antibody_plugins.txt
# Enable zsh autocorrection
setopt CORRECT_ALL
@ -40,7 +12,7 @@ setopt CORRECT_ALL
## Misc environment variables
# https://www.xkcd.com/378/
export EDITOR="vim"
export EDITOR="vim" # if antibody_plugins.txt includes robbyrussell/oh-my-zsh path:plugins/vi-mode, this also sets `bindkey -v`
export KEYTIMEOUT=1 # reduce the transition time between vim modes to 0.1s
export HISTSIZE=100000