prompt

Ion-Mihai Tetcu itetcu at apropo.ro
Mon Jan 12 11:14:26 PST 2004


On Mon, 12 Jan 2004 10:25:35 -0800
Freddie Cash <fcash-ml at sd73.bc.ca> wrote:

> On January 12, 2004 10:14 am, Ion-Mihai Tetcu wrote:
> > do a man csh and search for `prompt' (press / and write prompt and
> > then ENTER; for search again press / and ENTER) untill you get to the
> > `prompt' in the variables section, where you can see all teh options.
> 
> Save yourself a few keystrokes.  To find the next occurence of a search 
> term,  just press the "n" key.  :)

BTW, I've tried the following:
set prompt = "`hostname -s`> %/ [%P] %? \n`fortune -a -s` \n :-) \n # "

and sometime works OK, producing:
it> /usr/ports [20:41:57] 0
OK, so you're a Ph.D.  Just don't touch anything.:-)
 #

but in other cases doesn't print the hole prompt:
it> /usr/ports [20:43:12] 0
"Just once, I wish we would encounter an alien menace that wasn't
                                                                 ^^^^
it gives me the prompt at the end of the line.

Any hints ?


-- 
IOnut
Unregistered ;) FreeBSD user


More information about the freebsd-newbies mailing list