Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jonahbron
Created January 30, 2014 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonahbron/8713827 to your computer and use it in GitHub Desktop.
Save jonahbron/8713827 to your computer and use it in GitHub Desktop.
Shorten the command to search through rake routes
# Create a new, empty file if it does not exist. Creates parent directories if necessary.
#
# author Jonah Dahlquist
# license CC0
rrgrep() {
if hash zeus 2>/dev/null; then
zeus rake routes | grep $@
else
rake routes | grep $@
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment