From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29608 invoked from network); 17 Jun 2004 17:54:04 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 17 Jun 2004 17:54:04 -0000 Received: (qmail 19257 invoked from network); 17 Jun 2004 17:51:18 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 17 Jun 2004 17:51:18 -0000 Received: (qmail 8079 invoked by alias); 17 Jun 2004 17:50:57 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7561 Received: (qmail 8065 invoked from network); 17 Jun 2004 17:50:57 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 17 Jun 2004 17:50:54 -0000 Received: (qmail 18475 invoked from network); 17 Jun 2004 17:50:53 -0000 Received: from mail.hummerdns.net (HELO secure3.hummerdns.net) (207.44.152.5) by a.mx.sunsite.dk with SMTP; 17 Jun 2004 17:50:52 -0000 Received: from diavolo.exile.net (S0106000d88e212e5.gv.shawcable.net [24.68.20.99]) (authenticated (0 bits)) by secure3.hummerdns.net (8.11.6/8.11.6) with ESMTP id i5HHoto11353 for ; Thu, 17 Jun 2004 12:50:55 -0500 Received: by diavolo.exile.net (Postfix, from userid 1000) id D33F315C93D; Thu, 17 Jun 2004 10:50:23 -0700 (PDT) Date: Thu, 17 Jun 2004 10:50:23 -0700 From: Sami Samhuri To: "L:ZSH-users" Subject: Re: Coolest prompt? Message-ID: <20040617175023.GH10284@no-eff-eks.com> Mail-Followup-To: "L:ZSH-users" References: <200406111329.45312.myrmidon@vfemail.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mYYhpFXgKVw71fwr" Content-Disposition: inline In-Reply-To: <200406111329.45312.myrmidon@vfemail.net> User-Agent: Mutt/1.5.6i X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 --mYYhpFXgKVw71fwr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * It was Fri, Jun 11, 2004 at 01:29:45PM +0300 when Ziggy said: > ZSH allows the user to create interesting prompts. Time displaying, menu = bars=20 > and colors. >=20 > Post your prompt (and .zshrc) here. Mine is quite simple, but I find it to be useful without cluttering up my terminal. sjs@diavolo ~ % grep PROMPT .zshrc # PROMPT SUBTITUTION export PROMPT=3D$'%(?..%{\e[41;38m%}%B-%?-%b%{\e[0m%} )%(1j.%{\e[01;33m%}[%= j] .)%{\e[01;36m%}%n@%m%{\e[0m%} %{\e[01;32m%}%2~%{\e[0m%} %B%#%b ' export RPROMPT=3D$'%{\e[01;31m%}[%!]%{\e[0m%}' # history # on right It ends up looking like the above, however when there are jobs running it prepends [N] in yellow, where N is the number of jobs running. If the exit code of the previous command was non-zero in white on red it displays -$?- before the prompt. Where ~ is above it displays 2 directories of $PWD. (eg. ~/devel or kernel/linux-2.6.7-rc3-mm1) --=20 Sami Samhuri --mYYhpFXgKVw71fwr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA0dnfukGyBH1UC2MRApe9AJ99btgwdHjt08gTZLMmG8ETMcSScQCgs9d6 lKgCInQKfrpAdOmA1LrLMjQ= =y8Fd -----END PGP SIGNATURE----- --mYYhpFXgKVw71fwr--