[opensource] Linux Terminal Prompt

Tobias Gordon gordonto at cse.ohio-state.edu
Thu Feb 8 16:33:20 EST 2007


Thank you guys, that was quite easy once I figured out where to look.
Now if I could only find a color pattern I like :)

Thanks all,

-T

Marc Uhrich wrote:
> I haven't messed with this much, but if you are using the bash shell
> .bashrc set the environment variable for the prompt.  If you want to
> override it briefly you can modify the environment variable PS1 to make
> it whatever you would like.  However, if you want the change to be
> persistent you'll have to set this every time you open a new shell (by
> modifying the ./bashrc file).  For example, if you want a non colored
> prompt with username at host > you would run the command PS1="\u@\H >". 
> Linkage-> http://www.gentoo.org/doc/en/articles/prompt-magic.xml
> Hope this helps,
> Marc Uhrich
> Systems Engineer @ OSU Graduate School
> 247 University Hall, 230 N Oval Mall
> Columbus, Ohio  43210
> (614) 292-6998
> 
> 
> -----Original Message-----
> From: opensource-bounces at cse.ohio-state.edu
> [mailto:opensource-bounces at cse.ohio-state.edu] On Behalf Of Tobias
> Gordon
> Sent: Thursday, February 08, 2007 1:54 PM
> To: opensource at cse.ohio-state.edu
> Subject: [opensource] Linux Terminal Prompt
> 
> Hey all,
> 
> Is there a way to change the color of "username at comp:~$"?
> It's very annoying when trying to scroll up to see a particular output 
> and having to spend most of the time searching to find which lines were 
> output lines.
> 
> Thanks,
> Tobias
> _______________________________________________
> Opensource mailing list
> Opensource at cse.ohio-state.edu
> http://mail.cse.ohio-state.edu/mailman/listinfo/opensource
> 


More information about the Opensource mailing list