Created
August 21, 2009 18:38
-
-
Save defunkt/172292 to your computer and use it in GitHub Desktop.
Revisions
-
defunkt created this gist
Aug 21, 2009 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ # put this in ~/.bash_profile or whatever ruby_or_irb () { if [ "$1" == "" ]; then irb else ruby "$@" fi } alias ruby="ruby_or_irb" 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ # now `ruby` on its own launches irb $ ruby -e "puts :hi" hi $ ruby -rubygems -e "puts :hi" hi $ ruby >> :woot => :woot # want to pass crap to your session? use irb $ irb -rubygems >> :tada => :tada