View Single Post
  #1   (View Single Post)  
Old 3rd December 2009
tetrodozombie tetrodozombie is offline
Real Name: bill slusser
Banned
 
Join Date: Dec 2009
Location: atlanta, ga
Posts: 82
Wink 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.

Code:
print "\033[1;34m"
PS1='| $PWD | '
THAT's ALL!

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)
. .kshrc
(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:
. .profile

But, a newbie would definitely log out and log back in.

Voila!

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 ;)
Reply With Quote