Permalink
Browse files

Add alias to find rake

  • Loading branch information...
1 parent 84da01d commit 6412e605cabeb83b18d5756da1fa09842a8ff23b @tclem committed Jul 3, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 zsh/aliases.zsh
View
@@ -20,3 +20,13 @@ alias lsa='ls -lah'
alias l='ls -la'
alias ll='ls -l'
+# https://gist.github.com/b00f68b40e3ebcc1269c
+function find_rake {
+ if [[ -f Gemfile && -x bin/rake ]]; then
+ bin/rake "$@"
+ else
+ rake "$@"
+ fi
+}
+
+alias rake=find_rake

0 comments on commit 6412e60

Please sign in to comment.