Bash scripting: change current Rails application directory
Put this in ~/.bashrc:
app () { cd "/var/www/$*/current"; }
Execute:
. ~/.bashrc
Now you can change to another Rails app directory like this:
app xxx.com
Put this in ~/.bashrc:
app () { cd "/var/www/$*/current"; }
Execute:
. ~/.bashrc
Now you can change to another Rails app directory like this:
app xxx.com