How do I globally configure RSpec to keep the '--color' and '--format specdoc' options turned on

Viewed 57380

How do I set global configuration for RSpec in Ubuntu.

Specifically so, --color and --format specdoc stay turned on, across all my projects (ie every time I run rspec anywhere).

6 Answers

Or simply add alias spec=spec --color --format specdoc to your ~/.bashrc file like me.

Related