Sostituzione di antibody con antidote.

This commit is contained in:
Emiliano Vavassori 2024-09-28 23:22:56 +02:00
parent 721988c3df
commit e5a843972a
2 changed files with 7 additions and 6 deletions

View File

@ -40,13 +40,14 @@ if [[ ! -f "$HOME/.zshrc" ]]; then
if [[ -f ${DOTFILES}/zsh/antibody_plugins.txt ]]; then
# Installing natively on archlinux, manjaro
if grep -i archlinux /proc/version || grep -i manjaro /proc/version; then
yay -S --no-confirm antibody-bin
yay -S --no-confirm zsh-antidote
else
curl -sfL git.io/antibody | sudo sh -s - -b /usr/local/bin
git clone --depth=1 https://github.com/mattmc3/antidote.git ${ZDOTDIR:-$HOME}/.antidote
fi
mkdir -p ~/.zsh/conf.d
antibody bundle < ${DOTFILES}/zsh/antibody_plugins.txt > ~/.zsh/conf.d/000_antibody.zsh
source /usr/share/zsh-antidote/antidote.zsh
antidote bundle < ${DOTFILES}/zsh/antibody_plugins.txt > ~/.zsh/conf.d/000_antidote.zsh
fi
# Copying tmux configuration file and initialize plugins.

6
zshrc
View File

@ -18,9 +18,9 @@ if [[ -f ${DOTFILES}/zsh/distro.base.zsh ]]; then
source ${DOTFILES}/zsh/distro.base.zsh
fi
# Antigen config - if configuration file exists.
if [[ -f ${HOME}/.zsh/antigen.conf.zsh ]]; then
source ${HOME}/.zsh/antigen.conf.zsh
# Loading antidote
if [[ -f /usr/share/zsh-antidote/antidote.zsh ]]; then
source /usr/share/zsh-antidote/antidote.zsh
fi
# configuring fzf plugin for tmux