diff --git a/prepare.sh b/prepare.sh index e8ed695..f15747d 100644 --- a/prepare.sh +++ b/prepare.sh @@ -36,6 +36,17 @@ if [[ ! -f "$HOME/.zshrc" ]]; then fi cp "${DOTFILES}/zshrc" "$HOME/.zshrc" + + 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 + else + curl -sfL git.io/antibody | sudo sh -s - -b /usr/local/bin + fi + + mkdir -p ~/.zsh/conf.d + antibody bundle < ${DOTFILES}/zsh/antibody_plugins.txt > ~/.zsh/conf.d/000_antibody.zsh fi # Copying tmux configuration file and initialize plugins. diff --git a/zsh/antibody_plugins.txt b/zsh/antibody_plugins.txt new file mode 100644 index 0000000..d8d6a68 --- /dev/null +++ b/zsh/antibody_plugins.txt @@ -0,0 +1,14 @@ +ohmyzsh/ohmyzsh path:plugins/command-not-found +ohmyzsh/ohmyzsh path:plugins/common-aliases +ohmyzsh/ohmyzsh path:plugins/copyfile +ohmyzsh/ohmyzsh path:plugins/fd +ohmyzsh/ohmyzsh path:plugins/fzf +ohmyzsh/ohmyzsh path:plugins/git +ohmyzsh/ohmyzsh path:plugins/pip +ohmyzsh/ohmyzsh path:plugins/python +ohmyzsh/ohmyzsh path:plugins/rsync +ohmyzsh/ohmyzsh path:plugins/sudo +ohmyzsh/ohmyzsh path:plugins/systemadmin +ohmyzsh/ohmyzsh path:plugins/systemd +ohmyzsh/ohmyzsh path:plugins/z +sunlei/zsh-ssh diff --git a/zshrc b/zshrc index 3c759d9..10e8ba8 100644 --- a/zshrc +++ b/zshrc @@ -21,26 +21,9 @@ if [[ -f ${DOTFILES}/zsh/distro.base.zsh ]]; then source ${DOTFILES}/zsh/distro.base.zsh fi -# Antigen config +# Antigen config - if configuration file exists. if [[ -f ${HOME}/.zsh/antigen.conf.zsh ]]; then source ${HOME}/.zsh/antigen.conf.zsh -else - source ${DOTFILES}/zsh/antigen.zsh - antigen bundle command-not-found - antigen bundle common-aliases - antigen bundle copyfile - antigen bundle fd - antigen bundle fzf - antigen bundle git - antigen bundle pip - antigen bundle python - antigen bundle rsync - antigen bundle sudo - antigen bundle systemadmin - antigen bundle systemd - antigen bundle z - antigen bundle sunlei/zsh-ssh - antigen apply fi # configuring fzf plugin for tmux