Switch to antidote

This commit is contained in:
Blallo 2022-10-06 16:35:12 +02:00
parent ea4ab5403a
commit 7bb2ace464
No known key found for this signature in database
GPG key ID: 0CBE577C9B72DC3F
5 changed files with 34 additions and 6 deletions

12
.zshrc
View file

@ -7,7 +7,7 @@ if [ -d "${HOME}/.config/zsh/completions" ]; then
fi fi
### edit cmds ### edit cmds
export VISUAL=vim export VISUAL=nvim
autoload edit-command-line autoload edit-command-line
zle -N edit-command-line zle -N edit-command-line
bindkey "^X^E" edit-command-line bindkey "^X^E" edit-command-line
@ -16,6 +16,12 @@ autoload -Uz compinit
compinit compinit
. ${HOME}/.config/zsh/antibody.zsh . ${HOME}/.config/zsh/antibody.zsh
### antidote
#. ~/.antidote/antidote.zsh
#antidote load
#. ~/.zsh_plugins.zsh
### KiTTY completion ### KiTTY completion
if which kitty > /dev/null; then if which kitty > /dev/null; then
@ -72,7 +78,7 @@ if [[ ! -z $TMUX ]]; then
fi fi
## Editor ## Editor
export EDITOR=vim export EDITOR=nvim
## Locale ## Locale
export LANG=.UTF-8 export LANG=.UTF-8
@ -125,7 +131,7 @@ alias ll="ls -l"
alias lrt="ls -lrt" alias lrt="ls -lrt"
alias wgpg="gpg --homedir /home/leo/.gnupg-sysdig" alias wgpg="gpg --homedir /home/leo/.gnupg-sysdig"
alias agpg="gpg --homedir /home/leo/.gnupg-ai" alias agpg="gpg --homedir /home/leo/.gnupg-ai"
alias ai_all="cat ${HOME}/Documents/personal/ai/code/prod/hosts.yml|yq '[.hosts|to_entries[]|{"key": .key, "value": .value.groups}]|from_entries'" alias ai_all="cat ${HOME}/code/ai/prod/hosts.yml|yq '[.hosts|to_entries[]|{"key": .key, "value": .value.groups}]|from_entries'"
alias pacbrowse="pacman -Qq | fzf --preview 'pacman -Qil {}' --layout=reverse --bind 'enter:execute(pacman -Qil {} | less)'" alias pacbrowse="pacman -Qq | fzf --preview 'pacman -Qil {}' --layout=reverse --bind 'enter:execute(pacman -Qil {} | less)'"
alias pikbrowse="pikaur -Qq | fzf --preview 'pacman -Qil {}' --layout=reverse --bind 'enter:execute(pikaur -Qil {} | less)'" alias pikbrowse="pikaur -Qq | fzf --preview 'pacman -Qil {}' --layout=reverse --bind 'enter:execute(pikaur -Qil {} | less)'"
alias vf="cd \$(git rev-parse --show-toplevel)" alias vf="cd \$(git rev-parse --show-toplevel)"

10
antidote.installed.txt Normal file
View file

@ -0,0 +1,10 @@
https://github.com/ael-code/zsh-gpg-agent /home/leo/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ael-code-SLASH-zsh-gpg-agent
https://github.com/ael-code/zsh-plugin-fasd-fzf /home/leo/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ael-code-SLASH-zsh-plugin-fasd-fzf
https://github.com/bobthecow/git-flow-completion /home/leo/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-bobthecow-SLASH-git-flow-completion
https://github.com/gangleri/pipenv /home/leo/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-gangleri-SLASH-pipenv
https://github.com/junegunn/fzf /home/leo/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-junegunn-SLASH-fzf
https://github.com/leophys/zsh-plugin-fzf-finder /home/leo/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-leophys-SLASH-zsh-plugin-fzf-finder
https://github.com/ohmyzsh/ohmyzsh /home/leo/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-ohmyzsh-SLASH-ohmyzsh
https://github.com/wahtique/zsh-plugin-fzf-finder /home/leo/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-wahtique-SLASH-zsh-plugin-fzf-finder
https://github.com/wfxr/forgit /home/leo/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-wfxr-SLASH-forgit
https://github.com/zsh-users/zsh-autosuggestions /home/leo/.cache/antidote/https-COLON--SLASH--SLASH-github.com-SLASH-zsh-users-SLASH-zsh-autosuggestions

View file

@ -3,12 +3,11 @@ ohmyzsh/ohmyzsh path:themes/agnoster.zsh-theme
ohmyzsh/ohmyzsh path:plugins/docker ohmyzsh/ohmyzsh path:plugins/docker
ohmyzsh/ohmyzsh path:plugins/virtualenv ohmyzsh/ohmyzsh path:plugins/virtualenv
ohmyzsh/ohmyzsh path:plugins/vagrant ohmyzsh/ohmyzsh path:plugins/vagrant
junegunn/fzf path:shell
zsh-users/zsh-autosuggestions
ael-code/zsh-gpg-agent ael-code/zsh-gpg-agent
ael-code/zsh-plugin-fasd-fzf ael-code/zsh-plugin-fasd-fzf
gangleri/pipenv gangleri/pipenv
leophys/zsh-plugin-fzf-finder leophys/zsh-plugin-fzf-finder
bobthecow/git-flow-completion bobthecow/git-flow-completion
zsh-users/zsh-autosuggestions
junegunn/fzf
wfxr/forgit wfxr/forgit

1
antidote.plugins.zsh Normal file
View file

@ -0,0 +1 @@

12
update_antidote.sh Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env zsh
# clone antidote if necessary
[[ -e ~/.antidote ]] || git clone https://github.com/mattmc3/antidote.git ~/.antidote
# source antidote
. ~/.antidote/antidote.zsh
# generate static plugins
antidote bundle < antidote.plugins.txt > antidote.plugins.zsh
[[ -f ~/.zsh_plugins.zsh ]] || ln -s $PWD/antidote.plugins.zsh ~/.zsh_plugins.zsh