Text cursor color should change according to language

Solution 1:

Make a shell script that tests weather how your language ($LANG) is set. Then, it output a value of a colored prompt accordingly.

In .bashrc, you would then set the promptvars shell option, and then set the bash prompt to the output of that shell script, like this:

PS1="`/full/path/your-script.sh`\$ "

That way, your script will be invoked each and every time you get a command prompt and it will generate the corresponding prompt string according to how LANG is set.

How do you generate a colored prompt? It will imposible for me to describe it without transcribing a color table... However, the easy way is to go to http://ezprompt.net/ and have it generate it for you on either case, and then just copy the generated colorized prompts on each particular case.