Skip to content

Commit

Permalink
Rollback of Pull ohmyzsh#366
Browse files Browse the repository at this point in the history
sorin-ionescu had some good points.
  • Loading branch information
betawaffle committed May 30, 2011
1 parent 142c03d commit 1e3b441
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 25 deletions.
12 changes: 0 additions & 12 deletions plugins/brew/brew.plugin.zsh
@@ -1,13 +1 @@
# 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"
}
5 changes: 1 addition & 4 deletions plugins/node/node.plugin.zsh
@@ -1,8 +1,5 @@
# This works if you installed node via homebrew.
export NODE_PATH="/usr/local/lib/node"

# Open the node api for your current version to the optional section.
# TODO: Make the section part easier to use.
function node-api {
function node-docs {
open "http://nodejs.org/docs/$(node --version)/api/all.html#$1"
}
2 changes: 0 additions & 2 deletions plugins/npm/npm.plugin.zsh

This file was deleted.

9 changes: 2 additions & 7 deletions plugins/rvm/rvm.plugin.zsh
@@ -1,6 +1,5 @@
fpath=($ZSH/plugins/rvm $fpath)
autoload -U compinit
compinit -i
# What does this really do?
# fpath=($ZSH/plugins/rvm $fpath)

alias rubies='rvm list rubies'
alias gemsets='rvm gemset list'
Expand Down Expand Up @@ -35,10 +34,6 @@ function rvm-update {
rvm reload # TODO: Reload rvm completion?
}

function rvm-link-completion {
ln -s "$rvm_path/scripts/zsh/Completion/_rvm" "$ZSH/plugins/rvm/_rvm.official"
}

# TODO: Make this usable w/o rvm.
function gems {
local current_ruby=`rvm-prompt i v p`
Expand Down

0 comments on commit 1e3b441

Please sign in to comment.