From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5061 invoked from network); 11 Jun 2004 22:13:00 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 11 Jun 2004 22:13:00 -0000 Received: (qmail 3708 invoked from network); 11 Jun 2004 21:59:46 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Jun 2004 21:59:46 -0000 Received: (qmail 26103 invoked by alias); 11 Jun 2004 21:59:15 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7525 Received: (qmail 26087 invoked from network); 11 Jun 2004 21:59:14 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 11 Jun 2004 21:59:11 -0000 Received: (qmail 32624 invoked from network); 11 Jun 2004 21:22:48 -0000 Received: from erouter1.it-datacntr.louisville.edu (136.165.5.195) by a.mx.sunsite.dk with SMTP; 11 Jun 2004 21:22:46 -0000 Received: from savgw-out.louisville.edu (savgw-out.louisville.edu [136.165.2.38]) by erouter1.it-datacntr.louisville.edu (Postfix) with SMTP id 2605914FE for ; Fri, 11 Jun 2004 17:20:54 -0400 (EDT) Received: from netmail.louisville.edu ([136.165.5.76]) by savgw-out.louisville.edu (SAVSMTP 3.1.5.43) with SMTP id M2004061117164325824 for ; Fri, 11 Jun 2004 17:16:43 -0400 Received: from louisville.edu agdavi01@netmail.louisville.edu [12.220.223.80] by netmail.louisville.edu with NetMail SMTP Agent $Revision: 3.22.1.5 $ on Linux via secured & encrypted transport (TLS); Fri, 11 Jun 2004 17:20:40 -0400 Date: Fri, 11 Jun 2004 17:20:12 -0400 Subject: Re: Coolest prompt? Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v553) From: Aaron Davies To: zsh-users@sunsite.dk Content-Transfer-Encoding: 7bit In-Reply-To: <200406111329.45312.myrmidon@vfemail.net> Message-Id: <203DECF0-BBED-11D8-B393-000502631FBD@louisville.edu> X-Mailer: Apple Mail (2.553) X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=1.0 required=6.0 tests=FROM_ENDS_IN_NUMS autolearn=no version=2.63 X-Spam-Hits: 1.0 Mine currently says 91.0 F Aaron-Davies-Computer~ :) % the relevant zprofile line is export PS1='`cat /tmp/temperature`'" %m%~ %(0?.:).:() %# " but the real magic is in my crontab: */15 * * * * curl -s http://weather.noaa.gov/weather/current/KSDF.html | grep 'F (' | head -n 1 | awk '{print $3 " " $4}' > /tmp/temperature I got both "cute" ideas (the temp and the return-code smilies) from Slashdot discussions on prompt strings. On Friday, June 11, 2004, at 06:29 AM, Ziggy wrote: > ZSH allows the user to create interesting prompts. Time displaying, > menu bars > and colors. > > Post your prompt (and .zshrc) here. > > Mine is a rather simple one: > adi@omega ~ % 1:27PM > Fri > > My zshrc:: > > alias d="ls --color" > alias ls="ls --color=auto" > alias ll="ls --color -lh" > alias nano="nano -w" > alias "nano --override"="nano" > alias BitchX="BitchX dushkinup" > autoload -U compinit promptinit > compinit > promptinit; prompt gentoo > > RPROMPT=' %B%@%b %U%D{%a}%u' > prompt="{%U%n#%l@%m:%h%u} %30<...<%~%#" > > chpwd() { > [[ -t 1 ]] || return > if [[ -n $xterm_prompt ]] { > print -Pn "\e]2;${USER}@${HOST}:%~\a" > } > } > > -- > Linux > 2.6.6 > (Gentoo) > i686 P4 > > > Men occasionally stumble over the truth, but most of them pick > themselves > up and hurry off as if nothing had happened. > -- Winston Churchill > > -- __ __ / ) / ) /--/ __. __ ______ / / __. , __o _ _ / (_(_/|_/ (_(_) / (_ /__/_(_/|_\/ <__