# put this in ~/.bash_profile or whatever ruby_or_irb () { if [ "$1" == "" ]; then irb else ruby "$@" fi } alias ruby="ruby_or_irb"