From owner-freebsd-chat Thu Jul 29 18:29:42 1999 Delivered-To: freebsd-chat@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id E747A15678 for ; Thu, 29 Jul 1999 18:29:34 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id KAA06314; Fri, 30 Jul 1999 10:59:09 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id KAA56887; Fri, 30 Jul 1999 10:59:07 +0930 (CST) Date: Fri, 30 Jul 1999 10:59:07 +0930 From: Greg Lehey To: Anton Berezin Cc: chat@FreeBSD.ORG Subject: Shells (was: What to tell to Linux-centric people?!) Message-ID: <19990730105907.N93194@freebie.lemis.com> References: <19990727075026.A27880@keltia.freenix.fr> <19990727234225.A33009@keltia.freenix.fr> <19990727174037.I12369@futuresouth.com> <19990729131526.B8627@netmonger.net> <19990729192908.E71112@lion.plab.ku.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <19990729192908.E71112@lion.plab.ku.dk>; from Anton Berezin on Thu, Jul 29, 1999 at 07:29:08PM +0200 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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