From cfcf88c397cd742d8d66cf06f0de86220479c330 Mon Sep 17 00:00:00 2001 From: James Walker Date: Wed, 9 Oct 2013 13:52:17 -0400 Subject: [PATCH] a cask plugin ( see robbyrussell/oh-my-zsh#1999 ) --- home/.zsh/custom/plugins/cask/cask.plugin.zsh | 6 ++++++ home/.zshrc | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 home/.zsh/custom/plugins/cask/cask.plugin.zsh diff --git a/home/.zsh/custom/plugins/cask/cask.plugin.zsh b/home/.zsh/custom/plugins/cask/cask.plugin.zsh new file mode 100644 index 0000000..5e228de --- /dev/null +++ b/home/.zsh/custom/plugins/cask/cask.plugin.zsh @@ -0,0 +1,6 @@ +if [ -d $HOME/.cask ]; then + export PATH="$HOME/.cask/bin:$PATH" +fi +if which cask &> /dev/null; then + source $(dirname $(which cask))/../etc/cask_completion.zsh +fi diff --git a/home/.zshrc b/home/.zshrc index 3c2e6a2..5692943 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -19,7 +19,7 @@ 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 tmux tmuxinator git github git-flow svn ruby gem rbenv rails3 bundler heroku pip django fabric osx brew deb ssh-agent npm nvm drush composer symfony2 vagrant knife) +plugins=(extract cask tmux tmuxinator git github git-flow svn ruby gem rbenv rails3 bundler heroku pip django fabric osx brew deb ssh-agent npm nvm drush composer symfony2 vagrant knife) # Python/ virtualenv if [ -f /usr/local/bin/virtualenvwrapper.sh ]; then