[opensource] Linux Terminal Prompt

Evan Powers powers.161 at osu.edu
Thu Feb 8 14:59:35 EST 2007


On 2/8/07, Tobias Gordon <gordonto at cse.ohio-state.edu> wrote:
> Is there a way to change the color of "username at comp:~$"?

You'll want to read this:
    http://www.gentoo.org/doc/en/articles/prompt-magic.xml

Or, you can just put the following line in your .bashrc, assuming Bash
is the shell you use:

export 'PS1=\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]'

- Evan


More information about the Opensource mailing list