Date: Thu, 19 Jun 1997 12:42:31 +0800 (HKT) From: Greg Lehey <grog@FreeBSD.ORG> To: msmith@atrad.adelaide.edu.au (Michael Smith) Cc: chat@FreeBSD.ORG (FreeBSD Chat) Subject: Re: OS/2 users going to FreeBSD? :-) Message-ID: <199706190442.MAA00611@papillon.lemis.com> In-Reply-To: <199706190227.LAA24488@genesis.atrad.adelaide.edu.au> from Michael Smith at "Jun 19, 97 11:57:46 am"
next in thread | previous in thread | raw e-mail | index | archive | help
Michael Smith writes: > Geir Eivind Mork stands accused of saying: >> But I was using 4os/2 as my primary shell in Os/2, how can I emulate >> it's features (except alias) in BSD (I use the standar shell in >> BSD).. Like the TAB feature, the doskey-alike feature (browse >> previous commands) etc. > > 4os2/4dos/etc inherit heavily from bash/tcsh. Either of these shells > are, in most regards, vastly superior due at least in part to the > environment. > >> And btw; Can I use some sort of macro in the prompt ? Like I did in >> dos/4os? Like the famous $p$g? I haven't figured out something like >> that from the man(uals) > > Here is my prompt (for tcsh), nothing fancy : > > set prompt=`hostname -s`:%~\> Ah. Now I'm going to have to publish mine for bash, too. This is the one you'll see in the FreeBSD book: PS1="=== \u@\h (`tty`) \w \# -> " PS2="\u@\h \w \! ++ " PS1 is used for primary prompts, and PS2 is used for continuations. Greg
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706190442.MAA00611>