Override for local antigen configuration. Fixed loading without base configuration for distro.

This commit is contained in:
Emiliano Vavassori 2023-12-30 15:10:01 +01:00
parent e8d32e67b5
commit 56caa25528
1 changed files with 23 additions and 17 deletions

40
zshrc
View File

@ -11,25 +11,31 @@ autoload -Uz compaudit compinit
compinit
# zsh packages from system
source ${DOTFILES}/zsh/distro.base.zsh
if [[ -f ${DOTFILES}/zsh/distro.base.zsh ]]; then
source ${DOTFILES}/zsh/distro.base.zsh
fi
# Antigen config
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
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
export ZSH_TMUX_CONFIG=${HOME}/.config/tmux/tmux.conf