Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Jan 1999 22:27:01 +0100 (CET)
From:      Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
To:        Sue Blake <sue@welearn.com.au>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   RE: pretty prompts
Message-ID:  <XFMail.990109222701.asmodai@wxs.nl>
In-Reply-To: <19990110055504.32132@welearn.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On 09-Jan-99 Sue Blake wrote:
> Years ago in DOS I went through a fancy prompt phase. It got really bad
>:-)
> For example, one prompt put a blue stripe permanently along the top of
> the screen that showed current directory, time, and whatever other junk
> would fit, with a simple gold prompt mark in the main scrolling part.
> 
> Now in my second newbiehood I'm wondering, can I do that sort of stuff
> with FreeBSD? I can't find any clues in the sh or bash man pages (only
> basic useful stuff, nothing senseless, fun, or psychadelic) so maybe
> there's something else to learn?

.shrc has a basic start for changing prompt.

Basically prompts revolve around PS1, PS2, PS3, PS4 which can be set with
standard export commands.

This will get ye something like:

[asmodai@daemon] (31) $ 

The 31 is the command history buffer and with ksh using vi-mode I can do a
<ESC> 31 g to go back to command number 31.

To get that result use something like (!) in yer .kshrc or equivalent shell.

---
Jeroen Ruigrok van der Werven    A veil of smoke is what I am,
asmodai(at)wxs.nl                         I wait and I wait...
Network/Security Specialist      <http://home.wxs.nl/~asmodai>;
BSD & picoBSD: The Power to Serve     <http://www.freebsd.org>;

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.990109222701.asmodai>