Skip to content

Instantly share code, notes, and snippets.

@erkattak
Created March 6, 2012 02:38
Show Gist options
  • Save erkattak/1983014 to your computer and use it in GitHub Desktop.
Save erkattak/1983014 to your computer and use it in GitHub Desktop.
Rails Pry zsh plugin
# replaces irb in the rails console with pry
# instead of 'rails c', start the console with 'rails pry'
rails(){
if [[ $@ == "pry" ]]; then
command pry -r ./config/environment;
else
command rails "$@";
fi;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment