From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13562 invoked from network); 18 Jun 2004 16:08:04 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 18 Jun 2004 16:08:04 -0000 Received: (qmail 7362 invoked from network); 18 Jun 2004 16:07:27 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Jun 2004 16:07:27 -0000 Received: (qmail 2287 invoked by alias); 18 Jun 2004 16:07:05 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7563 Received: (qmail 2276 invoked from network); 18 Jun 2004 16:07:05 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 18 Jun 2004 16:07:02 -0000 Received: (qmail 6444 invoked from network); 18 Jun 2004 16:07:02 -0000 Received: from pop.gmx.de (HELO mail.gmx.net) (213.165.64.20) by a.mx.sunsite.dk with SMTP; 18 Jun 2004 16:07:00 -0000 Received: (qmail 23633 invoked by uid 65534); 18 Jun 2004 16:06:34 -0000 Received: from xdsl-213-196-241-40.netcologne.de (EHLO psycho.linux.lan) (213.196.241.40) by mail.gmx.net (mp018) with SMTP; 18 Jun 2004 18:06:34 +0200 X-Authenticated: #17288288 Received: by psycho.linux.lan (sSMTP sendmail emulation); Fri, 18 Jun 2004 18:08:35 +0200 Date: Fri, 18 Jun 2004 18:08:35 +0200 From: Sartoo To: "L:ZSH-users" Subject: Re: Coolest prompt? Message-ID: <20040618160835.GA24163@psycho.linux.lan> Mail-Followup-To: "L:ZSH-users" References: <200406111329.45312.myrmidon@vfemail.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200406111329.45312.myrmidon@vfemail.net> X-Editor: VIM - Vi IMproved 6.3 (2004 June 7, compiled Jun 10 2004 08:57:55) X-Operating-System: Linux 2.6.7 (Mandrakelinux 10.1 (Cooker)) 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 * Ziggy wrote: > ZSH allows the user to create interesting prompts. Time displaying, menu bars > and colors. Yes, that's a nice feature. :) > Post your prompt (and .zshrc) here. > Mine is a rather simple one: > adi@omega ~ % 1:27PM Fri I prefer this one: sartoo: \> cd /usr/share/zsh/4.2.0/functions/ /home/sartoo [61,69] sartoo: \> cd /root ...0/functions [7,0] cd: permission denied: /root sartoo: \> su (1) ...0/functions [7,0] root@mdk01 /> /root [19,22] ^ ^ Number of dirs in $PWD -| | Number of files in $PWD -| and here is the associated part of my ~/.zshrc ,-----[» ~/.zshrc «]-- | precmd () { | FILE=$(find . -maxdepth 1 -type f 2> /dev/null|wc -l) | DIRS=$(find . -maxdepth 1 -type d 2> /dev/null|wc -l) | DIRS=`expr $DIRS - 1` | PS1=$( echo "%{\e[1;34m%}%n%{\e[0m%}%(#.@%{\e[1;34m%}%m/>%{\e[0m%}.:%{\e[1;34m%} \>%{\e[0m%}) ") | RPS1=$(echo "%(?..%{\e[31m%}%B(%?) %b%{\e[0m%})%14<..<%/%}%<<%{\e[1;30m%} [$DIRS,$FILE]%{\e[0m%} ") | } `-------------------- Bye Sartoo -- Was kann an der Arbeit gut sein, wenn die Reichen sie den Armen überlassen? -- Graffito