From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7004 invoked from network); 15 Jun 2004 15:20:56 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 15 Jun 2004 15:20:56 -0000 Received: (qmail 10951 invoked from network); 15 Jun 2004 15:19:20 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 15 Jun 2004 15:19:20 -0000 Received: (qmail 3208 invoked by alias); 15 Jun 2004 15:18:52 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7554 Received: (qmail 3194 invoked from network); 15 Jun 2004 15:18:52 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 15 Jun 2004 15:18:48 -0000 Received: (qmail 9853 invoked from network); 15 Jun 2004 15:18:42 -0000 Received: from antilope.in-berlin.de (root@192.109.42.66) by a.mx.sunsite.dk with SMTP; 15 Jun 2004 15:18:41 -0000 Received: from antilope.in-berlin.de (localhost [127.0.0.1]) by antilope.in-berlin.de (8.12.11/8.12.11/Debian-4) with ESMTP id i5FFIeWX017742 for ; Tue, 15 Jun 2004 17:18:40 +0200 Received: (from plenz@localhost) by antilope.in-berlin.de (8.12.11/8.12.11/Debian-4) id i5FFIeET017740 for zsh-users@sunsite.dk; Tue, 15 Jun 2004 17:18:40 +0200 X-Authentication-Warning: antilope.in-berlin.de: plenz set sender to jp@cvmx.de using -f Date: Tue, 15 Jun 2004 17:18:40 +0200 From: Julius Plenz To: ZSH-users Subject: Re: Coolest prompt? Message-ID: <20040615151840.GC7673@cvmx.de> Mail-Followup-To: ZSH-users References: <200406111329.45312.myrmidon@vfemail.net> <87CE3664-BBF7-11D8-9BE4-000393ABF2F0@chemistry.ucsc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87CE3664-BBF7-11D8-9BE4-000393ABF2F0@chemistry.ucsc.edu> Organization: CVMX, kostenloser Mail- und Newsservice X-PGP-Key: 0x186DCA0D X-PGP-Fingerprint: 3993 FD19 2AF0 E21E 5D74 E963 144C 5EE9 186D CA0D X-URL: http://www.plenz.com/ X-Operating-System: Debian GNU/Linux testing/unstable (Kernel 2.4.26) 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=BAYES_44 autolearn=no version=2.63 X-Spam-Hits: -0.0 * William Scott [2004-06-12 00:50]: > My prompt: % Well,... > I keep the prompt simple I see. I also like simple prompts, but a _bit_ more infos are ok. ;-) Therefore my prompt looks like this (relevant parts, be careful with wraps): precmd () { TMPPATH=" "$PWD SHORTPATH=${(M)TMPPATH%???????????} PS1=$(echo "%{\033[0;36m%}$SHORTPATH%{\033[0m%},%{\033[0;31m%}%j%{\033[0m%}%% ") } To see this Prompt in action, look at this example: e/www/plenz,0% cd www/ w/plenz/www,0% cd plenz.com/ w/plenz.com,0% cd /tmp /tmp,0% sleep 10& [1] 16056 /tmp,1% cd [1] + 16056 done sleep 10 e/www/plenz,0% So, you see, there is a fixed path-length and the number of background jobs. I really like this prompt, its simple but gives enough information. Julius -- www.plenz.com