~/.irbrc not executed when starting irb or script/console
Posted
by Patrick Klingemann
on Stack Overflow
See other posts from Stack Overflow
or by Patrick Klingemann
Published on 2010-04-24T10:01:40Z
Indexed on
2010/04/24
10:03 UTC
Read the original article
Hit count: 486
Here's what I've tried:
1. gem install awesome_print
2. echo "require 'ap'" >> ~/.irbrc
3. chmod u+x ~/.irbrc
4. script/console
5. ap { :test => 'value' }
Result:
NameError: undefined local variable or method `ap' for #
Some additional info:
Fedora 13 (observed this issues in prior versions of Fedora also)
bash --version
Produces:
GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu) Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
© Stack Overflow or respective owner