DaemonForums  

Go Back   DaemonForums > Miscellaneous > Guides

Guides All Guides and HOWTO's.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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


All times are GMT. The time now is 08:43 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick