I want to add colors to the MySQL command line color prompt.
I have so far in a script (database.sh):
mysql -uroot -hlocalhost -A --prompt="\u@\h:\d> "
I would like root
to be red, @
to be blue, localhost
to be green and database
to be cyan:
root@localhost:database>
Is it possible to do this in my script?
Best Answer
Don't listen to people who say you can't. Here:
Then: