If you are doing development on Linux using a bash shell this is a nice alias a time saver might be to setup some aliases. I am using an alias to start script/server via simply typing ‘ss’.

Here’s all you have to do:

Jump into your home directory and open hidden file .profile:

user@kenyacoffee:~/railz/bort$ cd
user@kenyacoffee:~$
user@kenyacoffee:~$ nano .profile

Add the following line:

alias ss="./script/server"

Exit nano and write out the changes to .profile.

In your home directory execute the source command:

user@kenyacoffee:~/railz$ cd
user@kenyacoffee:~$ source .profile

Now change back to your rails project directory and try running ‘ss’:

user@kenyacoffee:~$ cd railz/bort
user@kenyacoffee:~/railz/bort$ ss
=> Booting Mongrel (use 'script/server webrick' to force WEBrick)
=> Rails 2.2.0 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...

Feels good to type less!