Created
July 13, 2016 11:52
-
-
Save joeyates/6bb149988f3527ad1835caa4c878d84f to your computer and use it in GitHub Desktop.
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
| # Set up a bash function to cd to a Rails app's current directory and set the prompt | |
| rails_app () | |
| { | |
| cd "$APP_PATH/current"; | |
| export PS1="(\$APP_NAME:\$RAILS_ENV)\w>" | |
| } | |
| my_rails_app () | |
| { | |
| export APP_NAME=my_rails_app | |
| export RAILS_ENV=production | |
| export APP_PATH="/srv/my_rails_app" | |
| rails_app | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment