Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jul 1999 19:29:08 +0200
From:      Anton Berezin <tobez@plab.ku.dk>
To:        chat@FreeBSD.ORG
Subject:   Re: What to tell to Linux-centric people?!
Message-ID:  <19990729192908.E71112@lion.plab.ku.dk>
In-Reply-To: <19990729131526.B8627@netmonger.net>; from Christopher Masto on Thu, Jul 29, 1999 at 01:15:26PM -0400
References:  <19990727075026.A27880@keltia.freenix.fr> <Pine.BSF.4.05.9907271242540.1387-100000@dt011n65.san.rr.com> <19990727234225.A33009@keltia.freenix.fr> <19990727174037.I12369@futuresouth.com> <19990729131526.B8627@netmonger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 29, 1999 at 01:15:26PM -0400, Christopher Masto wrote:

> I have this abomination from when I first switched to zsh.. I'm not
> proud.
> 
> function Sf () {
>         echotc me
>         [[ $1 != '-' ]] && echotc AF $1
>         [[ -n $2 && $2 != '-' ]] && echotc AB $2
>         [[ $3 -ne 0 ]] && echotc md
> }
> 
> PS1=%{`Sf 6 4`%}%n%{`Sf 7 4`%}@%{`Sf 3 4 1`%}%m%{`Sf 7 4`%}:%{`Sf 6 4 1`%}%~%{`Sf 2 0 1`%}%(#.#.\$)%{`Sf - - 0`%}' '

Nice, though I would not say I like the colors.  I have this, which
saves me from running any kind of xclock on my desktop:

PS1="%(t.(%T).)%30(t.(%T).)%15(t.(%T).)%45(t.(%T).)%n@%m %2.%(#.#.>) "

Can bash do this?

Cheers,
-- 
Anton Berezin <tobez@plab.ku.dk>
The Protein Laboratory, University of Copenhagen


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




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