From 99752390e0b8d037de1593d8f9a7645d625a7b62 Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Mon, 20 Jul 2020 19:45:16 +0800 Subject: [PATCH] Update os specific config --- .zshrc | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.zshrc b/.zshrc index 44bd114..6c94120 100644 --- a/.zshrc +++ b/.zshrc @@ -10,6 +10,12 @@ if [[ -f "$HOME/antigen.zsh" ]]; then source $HOME/antigen.zsh fi +if [[ -f "$HOME/dotfiles/wp-completion.bash" ]]; then + autoload bashcompinit + bashcompinit + source $HOME/dotfiles/wp-completion.bash +fi + # Load the oh-my-zsh's library. antigen use oh-my-zsh @@ -26,9 +32,6 @@ antigen bundle tmux antigen bundle tmuxinator antigen bundle docker antigen bundle docker-compose -# macos -antigen bundle brew -antigen bundle osx # Syntax highlighting bundle. antigen bundle zsh-users/zsh-syntax-highlighting @@ -52,7 +55,19 @@ antigen bundle pip antigen bundle python antigen bundle virtualenv + # OS specific plugins +case `uname` in +Darwin) + antigen bundle brew + antigen bundle brew-cask + antigen bundle gem + antigen bundle osx + ;; +FreeBSD) + ;; +esac + if [[ $CURRENT_OS == 'OS X' ]]; then antigen bundle brew antigen bundle brew-cask