Date: Fri, 30 Jul 1999 10:59:07 +0930 From: Greg Lehey <grog@lemis.com> To: Anton Berezin <tobez@plab.ku.dk> Cc: chat@FreeBSD.ORG Subject: Shells (was: What to tell to Linux-centric people?!) Message-ID: <19990730105907.N93194@freebie.lemis.com> In-Reply-To: <19990729192908.E71112@lion.plab.ku.dk>; from Anton Berezin on Thu, Jul 29, 1999 at 07:29:08PM %2B0200 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> <19990729192908.E71112@lion.plab.ku.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, 29 July 1999 at 19:29:08 +0200, Anton Berezin wrote: > 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? Yes. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key 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?19990730105907.N93194>