~/.irbrc not executed when starting irb or script/console
- by Patrick Klingemann
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.