diff options
author | Robby Russell <robby@planetargon.com> | 2011-05-29 03:54:05 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2011-05-29 03:54:05 -0700 |
commit | 40a737ee1362d7d745313c4aa8ea29e28ff52978 (patch) | |
tree | c20a403fbfaa01c7c559605f585908b6aac7d39c /plugins/brew/brew.plugin.zsh | |
parent | b0c9bc88ef630e056bd670ad185514cf435c2085 (diff) | |
parent | 6b86636413c3b9b98d723ea77058db6c283325e4 (diff) | |
download | zsh-40a737ee1362d7d745313c4aa8ea29e28ff52978.tar.gz zsh-40a737ee1362d7d745313c4aa8ea29e28ff52978.tar.bz2 zsh-40a737ee1362d7d745313c4aa8ea29e28ff52978.zip |
Merge pull request #366 from betawaffle/master
Add/update plugins: brew, rvm, node, npm, pow, and thor.
Diffstat (limited to 'plugins/brew/brew.plugin.zsh')
-rw-r--r-- | plugins/brew/brew.plugin.zsh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/brew/brew.plugin.zsh b/plugins/brew/brew.plugin.zsh new file mode 100644 index 000000000..f584a4684 --- /dev/null +++ b/plugins/brew/brew.plugin.zsh @@ -0,0 +1,13 @@ +# Move /usr/local/bin (path where brews are linked) to the front of the path +# This will allow us to override system binaries like ruby with our brews +# TODO: Do this in a more compatible way. +# What if someone doesn't have /usr/bin in their path? +export PATH=`echo $PATH | sed -e 's|/usr/local/bin||' -e 's|::|:|g'` # Remove /usr/local/bin +export PATH=`echo $PATH | sed -e 's|/usr/bin|/usr/local/bin:&|'` # Add it in front of /usr/bin +export PATH=`echo $PATH | sed -e 's|/usr/bin|/usr/local/sbin:&|'` # Add /usr/local/sbin + +alias brews='brew list -1' + +function brew-link-completion { + ln -s "$(brew --prefix)/Library/Contributions/brew_zsh_completion.zsh" "$ZSH/plugins/brew/_brew.official" +} |