From e5a843972a127b0d58394dcbab8644bfbecfb1b9 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sat, 28 Sep 2024 23:22:56 +0200 Subject: [PATCH] Sostituzione di antibody con antidote. --- prepare.sh | 7 ++++--- zshrc | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/prepare.sh b/prepare.sh index f15747d..0be2b0c 100644 --- a/prepare.sh +++ b/prepare.sh @@ -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. diff --git a/zshrc b/zshrc index b76067e..9cbcd10 100644 --- a/zshrc +++ b/zshrc @@ -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