mathiasbynens/dotfiles — pull request #378 by hkdobrev (2014-05-09 20:40:13+00:00)
Title: Use grc to make bash less boring

[`grc` (Generic Colourizer)][grc homepage] is a simple tool which
brings colour to boring Bash commands.

Read the full [`grc` README][grc README] mirror repository on GitHub

Check out the [`grc` mirror repository on GitHub][grc github].

[grc homepage]: http://korpus.juls.savba.sk/~garabik/software/grc.html
[grc README]: http://korpus.juls.savba.sk/~garabik/software/grc/README.txt
[grc github]: https://github.com/pengwynn/grc

I've done the following changes:
- Install `grc` via `brew`
- Copy `$(brew --prefix grc)/etc/grc.bashrc` to `~/.grc.bashrc`.
`grc` colourize the `diff` command output by default. I've removed that
since there already is a `diff()` function in `.functions` which uses `git`.
- Source the `grc.bashrc` file in `.bash_profile`.

Here is an example with colourless `ping` command:

**Pure `ping` using `/sbin/ping` without `colourify`**:

![Pure black & white `ping`](https://cloud.githubusercontent.com/assets/506129/2933046/ed6af81a-d7b9-11e3-8507-90f3dac6fffd.png)

**Fun `ping`**:

![Colourful IPs and ms in `ping`](https://cloud.githubusercontent.com/assets/506129/2933051/f6074492-d7b9-11e3-94e3-1ad82024a30c.png)