Created
December 28, 2011 08:56
-
-
Save lest/1527176 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# rails command | |
_script_rails() { | |
local check_dir=$PWD | |
while [ "$(dirname $check_dir)" != "/" ]; do | |
if [ -f "$check_dir/script/rails" ]; then | |
"$check_dir/script/rails" $@ | |
return | |
fi | |
check_dir="$(dirname $check_dir)" | |
done | |
rails $@ | |
} | |
alias rails=_script_rails |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment