daniyel 098c7b1d17 Update .grcat
Corrected regex for colour red: i had records of type XXXXX-X and - in the records was colored as well.
2012-09-24 15:30:38 +03:00
2012-09-24 15:30:38 +03:00
2012-08-08 18:56:44 +04:00
2012-08-08 19:20:33 +04:00
2012-08-08 19:20:33 +04:00

colour-mysql-console

Sample config files showing how to colorize linux console mysql client using grc

How to use it

  1. Install grc (for debian systems: apt-get install grc)
  2. Copy both config files into your home directory
  3. Run mysql client mysql -u <user> -p -h <hostname>
  4. Enjoy!

How does it work

Mysql client supports using predefined pager for data output. So we can set grcat (Generic Colouriser) for processing mysql output. grcat reads supplied config file, parces output according to regexp's and adds colours. grc manual can be founded via man grc or here: http://kassiopeia.juls.savba.sk/~garabik/software/grc/README.txt

Sample screenshots

Table screenshot Vertical screenshot

Description
No description provided
Readme 105 KiB