diff --git a/zshrc b/zshrc index 28782a5..d29bb26 100644 --- a/zshrc +++ b/zshrc @@ -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