1) 
echo 'exec irb' >> ~/.bashrc

2) 
npowell@delilah ~ $ grep -A 3 def .irbrc 
def test
  puts "Oh Hai!"
end
npowell@delilah ~ $ irb
>> test
Oh Hai!



On Thu, Sep 11, 2008 at 05:16:44AM +0900, Lex Williams wrote:
> Hi guys !
> 
> I'm running opensuse 11.0 . I would like to know 2 things :
> 
> 1) is it possible to change my shell from bash to irb ? if so,how ? ( I
> tried chsh , but with no success )
> 2) is it possible to add methods to irb , by writing code in .irbrc ? If
> so , could I see an example ?
> 
> Thanks
> -- 
> Posted via http://www.ruby-forum.com/.
> 

-- 
nathan
nathan_at_nathanpowell_dot_org

The power of accurate observation is commonly called cynicism by those
who have not got it.
		 ~ George Bernard Shaw
------------------------------------