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 if [[ -f ${DOTFILES}/zsh/antibody_plugins.txt ]]; then
# Installing natively on archlinux, manjaro # Installing natively on archlinux, manjaro
if grep -i archlinux /proc/version || grep -i manjaro /proc/version; then 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 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 fi
mkdir -p ~/.zsh/conf.d 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 fi
# Copying tmux configuration file and initialize plugins. # 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 source ${DOTFILES}/zsh/distro.base.zsh
fi fi
# Antigen config - if configuration file exists. # Loading antidote
if [[ -f ${HOME}/.zsh/antigen.conf.zsh ]]; then if [[ -f /usr/share/zsh-antidote/antidote.zsh ]]; then
source ${HOME}/.zsh/antigen.conf.zsh source /usr/share/zsh-antidote/antidote.zsh
fi fi
# configuring fzf plugin for tmux # configuring fzf plugin for tmux