Skip to content

Commit

Permalink
Load up hub again
Browse files Browse the repository at this point in the history
  • Loading branch information
holman committed Apr 13, 2012
1 parent 801d041 commit ba22165
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions git/aliases.zsh
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
# Use `hub` as our git wrapper:
# http://defunkt.github.com/hub/
#
# I use JRuby substantially, and we want to make sure hub is run using MRI
# regardless of which Ruby you're using or else the `git status` in your prompt
# will take seven thousand seconds to run `ls`.
#
# I'm hardcoding it to an installed rvm (using rvm's `rvm 1.8.7,ruby /hub/path`
# syntax is way too slow). It should work fine for those without rvm, though.
if [[ -s $HOME/.rvm/scripts/rvm ]]
hub_path=$(which hub)
if [[ -f $hub_path ]]
then
if $(which hub &> /dev/null) && [[ -s $HOME/.rvm/rubies/ruby-1.8.7-p334 ]]
then
alias git='$HOME/.rvm/rubies/ruby-1.8.7-p358/bin/ruby `which hub`'
else
fi
alias git=$hub_path
fi

# The rest of my fun git aliases
Expand Down

0 comments on commit ba22165

Please sign in to comment.