Created
March 6, 2012 02:38
-
-
Save erkattak/1983014 to your computer and use it in GitHub Desktop.
Rails Pry zsh plugin
This file contains hidden or 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
| # 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