1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-22 03:21:30 +01:00

replace antigen with antibody

This commit is contained in:
bretello 2020-02-12 17:54:07 +01:00
parent 8eaa9fbde9
commit 7652cd81e5
2 changed files with 18 additions and 34 deletions

12
antibody_plugins.txt Normal file
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 # 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 autoload -Uz compinit
antigen_plugins="git compinit
vi-mode ZSH=$(antibody path robbyrussell/oh-my-zsh)
common-alias antibody bundle < $DOTFILES/antibody_plugins.txt
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
# Enable zsh autocorrection # Enable zsh autocorrection
setopt CORRECT_ALL setopt CORRECT_ALL
@ -40,7 +12,7 @@ setopt CORRECT_ALL
## Misc environment variables ## Misc environment variables
# https://www.xkcd.com/378/ # 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 KEYTIMEOUT=1 # reduce the transition time between vim modes to 0.1s
export HISTSIZE=100000 export HISTSIZE=100000