From owner-freebsd-chat Thu Jul 29 10:32:51 1999 Delivered-To: freebsd-chat@freebsd.org Received: from plab.ku.dk (plab.ku.dk [130.225.105.65]) by hub.freebsd.org (Postfix) with ESMTP id C4CB814D53 for ; Thu, 29 Jul 1999 10:32:36 -0700 (PDT) (envelope-from tobez@plab.ku.dk) Received: from lion.plab.ku.dk (lion.plab.ku.dk [130.225.105.49]) by plab.ku.dk (8.9.1/8.9.1) with ESMTP id TAA26543 for ; Thu, 29 Jul 1999 19:31:30 +0200 (CEST) Received: (from tobez@localhost) by lion.plab.ku.dk (8.9.3/8.9.3) id TAA85388 for chat@FreeBSD.ORG; Thu, 29 Jul 1999 19:29:08 +0200 (CEST) (envelope-from tobez) Date: Thu, 29 Jul 1999 19:29:08 +0200 From: Anton Berezin To: chat@FreeBSD.ORG Subject: Re: What to tell to Linux-centric people?! Message-ID: <19990729192908.E71112@lion.plab.ku.dk> References: <19990727075026.A27880@keltia.freenix.fr> <19990727234225.A33009@keltia.freenix.fr> <19990727174037.I12369@futuresouth.com> <19990729131526.B8627@netmonger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <19990729131526.B8627@netmonger.net>; from Christopher Masto on Thu, Jul 29, 1999 at 01:15:26PM -0400 Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 The Protein Laboratory, University of Copenhagen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message