From d04096238e433ee67e010d40815a80b3f428a8e6 Mon Sep 17 00:00:00 2001 From: James Walker Date: Tue, 1 Apr 2014 22:01:29 -0400 Subject: [PATCH] cleaning up some oh-my-zsh plugins (per $OSTYPE) --- home/.zshrc | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/home/.zshrc b/home/.zshrc index 1271545..fdcba06 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -19,14 +19,29 @@ export ZSH_CUSTOM=$HOME/.zsh/custom # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) # Example format: plugins=(rails git textmate ruby lighthouse) -plugins=(extract cask tmux tmuxinator git github git-flow svn ruby gem rbenv rails bundler heroku pip django fabric osx brew deb ssh-agent bower npm nvm golang drush composer symfony2 vagrant knife aws) +plugins=(extract cask tmux tmuxinator git github git-flow ruby gem rbenv rails bundler heroku ssh-agent bower npm nvm golang drush composer symfony2 vagrant knife) # Python/ virtualenv if [ -f /usr/local/bin/virtualenvwrapper.sh ]; then export WORKON_HOME=$HOME/.virtualenvs - plugins=($plugins virtualenvwrapper) + plugins=($plugins virtualenvwrapper pip django fabric) fi +# AWS CLI +if [ -f /usr/local/bin/aws_zsh_completer.sh ]; then + plugins=($plugins aws) +fi + +# Platform specific settings +case "$OSTYPE" in + darwin*) + plugins=($plugins brew brew-cask osx) + ;; + linux*) + plugins=($plugins deb) + ;; +esac + # OH MY ZSH! source $ZSH/oh-my-zsh.sh