diff --git a/.zshrc b/.zshrc index ab9de6b..1525b9c 100644 --- a/.zshrc +++ b/.zshrc @@ -7,7 +7,7 @@ if [ -d "${HOME}/.config/zsh/completions" ]; then fi ### edit cmds -export VISUAL=vim +export VISUAL=nvim autoload edit-command-line zle -N edit-command-line bindkey "^X^E" edit-command-line @@ -16,6 +16,12 @@ autoload -Uz compinit compinit . ${HOME}/.config/zsh/antibody.zsh +### antidote +#. ~/.antidote/antidote.zsh +#antidote load + +#. ~/.zsh_plugins.zsh + ### KiTTY completion if which kitty > /dev/null; then @@ -72,7 +78,7 @@ if [[ ! -z $TMUX ]]; then fi ## Editor -export EDITOR=vim +export EDITOR=nvim ## Locale export LANG=.UTF-8 @@ -125,7 +131,7 @@ alias ll="ls -l" alias lrt="ls -lrt" alias wgpg="gpg --homedir /home/leo/.gnupg-sysdig" 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 pikbrowse="pikaur -Qq | fzf --preview 'pacman -Qil {}' --layout=reverse --bind 'enter:execute(pikaur -Qil {} | less)'" alias vf="cd \$(git rev-parse --show-toplevel)" diff --git a/antidote.installed.txt b/antidote.installed.txt new file mode 100644 index 0000000..ec7271c --- /dev/null +++ b/antidote.installed.txt @@ -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 diff --git a/antibody.plugins.txt b/antidote.plugins.txt similarity index 93% rename from antibody.plugins.txt rename to antidote.plugins.txt index 6665a95..d1d98e6 100644 --- a/antibody.plugins.txt +++ b/antidote.plugins.txt @@ -3,12 +3,11 @@ ohmyzsh/ohmyzsh path:themes/agnoster.zsh-theme ohmyzsh/ohmyzsh path:plugins/docker ohmyzsh/ohmyzsh path:plugins/virtualenv ohmyzsh/ohmyzsh path:plugins/vagrant - +junegunn/fzf path:shell +zsh-users/zsh-autosuggestions ael-code/zsh-gpg-agent ael-code/zsh-plugin-fasd-fzf gangleri/pipenv leophys/zsh-plugin-fzf-finder bobthecow/git-flow-completion -zsh-users/zsh-autosuggestions -junegunn/fzf wfxr/forgit diff --git a/antidote.plugins.zsh b/antidote.plugins.zsh new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/antidote.plugins.zsh @@ -0,0 +1 @@ + diff --git a/update_antidote.sh b/update_antidote.sh new file mode 100755 index 0000000..ad4c83b --- /dev/null +++ b/update_antidote.sh @@ -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