ss Is Much Better Than script/server

I was somewhat shocked when someone asked me how come I type “ss” instead of “script/server” to start the server. He also asked me how come it doesn’t work on his computer. It dawned on me that a good percentage of Rails developers are from Windows and never worked on Unix.

For those switchers to Mac, here’s what you do. Simply add aliases in /etc/profile and restart the terminal. Below is what my profile looks like. For those Unix geeks out there about to flame me for not having other aliases or why rm includes “-rf”, just go away, it’s my preference.

# System-wide .profile for sh(1)

PATH=”/usr/local/bin:usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/mysql/bin”
export PATH

# System
alias ll=’ls -alh’
alias df=’df -h’
alias rm=’rm -rf’
alias ping=’ping -c4′

# TextMate as editor
alias e=’mate’

# Subversion
alias sup=’svn update’
alias scom=’svn commit’

# Ruby on Rails
alias ss=’script/server’
alias sgen=’script/generate’

if [ "${BASH-no}" != "no" ]; then
[ -r /etc/bashrc ] && . /etc/bashrc
fi

Comments

Comments are closed.

Powered by Olark