Open jsvd opened 8 years ago
Oddly, it only seems to be the colors that get forgotten. My indentation and indexing settings work properly.
I have the same issue, is there a way around this?
In my .irbrc
I have
AwesomePrint.defaults = {
indent: 2,
ruby19_syntax: true,
color: {
array: :blue,
hash: :blue
}
}
AwesomePrint.irb!
And just like @booch reports, indentation keeps working but the coloring is lost after the first print out.
I found the reason: The color
option is deleted from the defaults here and hence only regarded once.
I'll prepare a pull request to fix that.
This is still an issue. Current workaround is the ~/.aprc
file for color defaults, which won't disappear after the first print.
Which unfortunately does not work, if one uses a containerized development environment, where ~ is not the home directory of my user on my machine. For this the way to go is the .irbrc
approach.