How to Color Code Your Terminal in Gnome Shell 3.x

3:21 PM

Ever wished you had a color coded terminal like this?

xjonquilx | Sabayon, Ubuntu, Fedora, Linux, Oh My!

It's quite easy to do in Gnome Shell 3.x. First, open your home directory. Then press Ctrl + H to see your hidden files. Find the .bashrc file and open it. Add this command:

PS1='${debian_chroot:+($debian_chroot)}\\[\033[0;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

Save it and close out. Log out and log back in. You should now have a color coded terminal like the one above.

 

xjonquilx | Sabayon, Ubuntu, Fedora, Linux, Oh My!



You Might Also Like

4 comments

  1. Frederick TaunTaunNovember 4, 2011 at 1:02 PM

    Uhm, how does this relate to gnome shell? This is the regular way for the shell prompt to be colored.

    ReplyDelete
  2. .To you maybe but not for everyone. This was based off a question on Yahoo Answers.

    ReplyDelete