> On 20010821.0343, larry a price said ...
>
> > Oh, and I've got this as my prompt.  Drop this in ~/.bashrc if you use
> > bash...
> > 
> > function elite2 {
> >   local TTY=`tty|cut -d/ -f3,4`
> >   local C1="\[\033[32;40m\]"
> >   local C2="\[\033[35;40m\]"
> >   local C3="\[\033[0m\]"
> >   local D="$C2-$C1"
> >   PS1="$D(\u$C2@$C1\h)$D($TTY)$D(\$(date +%Y%m%d)$C2.$C1\$(date
> > +%H%M))$C2-\n$D(\w)$C2 | $C3" 
> > }
> >
> Yowsah, that's one thing i'd LIKE to get working under emacs (in copious
> spare time :P)
>  
> > elite2
> > unset elite2
> > 
> > 
> > It makes a green and purple prompt that looks like this:
> > 
> >   -(rob@fuggles)-(pts/2)-(20010817.1302)-
> >   -(~/code) |
> Um what does that line do?, i tried parts on it on my terminal but
> couldn't get it to show me the behavior (yes i do type whole lines in to
> check them out) Is ~/code a translator?

The above 'function elite2' make a command line prompt that looks like
the above output.

Instead of # or >, I have my username@host, which terminal I'm on
(pts/2), the date and time, then the ~/code is which directory I'm
currently in.  Just a bunch of info I like to know at the command
prompt.  And since it's colored, it helps me keep the output and the
command line separate.

--
Rob <rob_at_euglug_dot_net>
my @euglugCode = qw(v+++ e--- eug+ bsd+++ gnu+ S+++);

Reply via email to