Fix Ubuntu Command in Color Mode

There is a sample, default .bashrc file located in /etc/skel .

you could make a backup of your current .bashrc with mv .bashrc .bashrc.bak and then cp /etc/skel/.bashrc .bashrc to copy that sample back to your home directory. 

After that, un-comment force_color_prompt=yes in the new file and add [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" back to the end (last line) of the file so that RVM still works.

After that, execute . .bashrc at a prompt to reload your bash profile, which should give you a colored prompt again.

你可能感兴趣的:(Fix Ubuntu Command in Color Mode)