Color Prompt in OpenBSD.
I've worked long and hard to figure out how to make my prompts in color on OpenBSD and FreeBSD. OpenBSD rocks, so we'll forget we ever used FreeBSD from this point on. Here it is:
In your .kshrc file OR your .profile, add these two lines.
print "\033[1;34m" PS1='| $PWD | '
Log out and log back in or type this at the command line:
(If you put it in your .kshrc like I do) --> (don't type this)
(type that above), two dots separated by a space then kshrc next to the last dot.
( If you like to put it in your .profile )
type this at the command line:
But, a newbie would definitely log out and log back in.
If you used [1;34m you're gonna get a real nice light blue on black that honors the work the guys do who make OpenBSD a reality for us retards.
Go blue, I'm sick of using that Matrix Neo wanna be green on black color scheme for the command line, are you? Yet?
Last edited by J65nko; 3rd December 2009 at 03:05 AM. Reason: Added code tags ;)
|Thread||Thread Starter||Forum||Replies||Last Post|
|Nicer Prompt with ksh on 5.0||nihonto||NetBSD Installation and Upgrading||8||12th October 2009 08:49 PM|
|changing custom prompt ksh for root.||bsdnewbie999||OpenBSD General||7||1st April 2009 04:53 AM|
|Exec command in zsh prompt?||bsddaemon||General software and network||2||18th October 2008 09:37 PM|
|what to do at mountroot prompt?||Sunsawe||FreeBSD General||13||5th June 2008 08:06 AM|