zsh-users
 help / color / mirror / code / Atom feed
From: Aaron Davies <agdavi01@louisville.edu>
To: zsh-users@sunsite.dk
Subject: Re: Coolest prompt?
Date: Fri, 11 Jun 2004 17:20:12 -0400	[thread overview]
Message-ID: <203DECF0-BBED-11D8-B393-000502631FBD@louisville.edu> (raw)
In-Reply-To: <200406111329.45312.myrmidon@vfemail.net>

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  _  _
  /  (_(_/|_/ (_(_) / (_  /__/_(_/|_\/ <__</_/_)_


  parent reply	other threads:[~2004-06-11 22:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-11 10:29 Ziggy
2004-06-11 12:07 ` Thomas Köhler
2004-06-11 21:20 ` Aaron Davies [this message]
2004-06-11 22:34 ` William Scott
2004-06-15 15:18   ` Julius Plenz
2004-06-17 12:25     ` Vincent Lefevre
2004-06-17 17:50 ` Sami Samhuri
2004-06-18 16:08 ` Sartoo
2004-07-08  1:15 ` Geoff Wing

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=203DECF0-BBED-11D8-B393-000502631FBD@louisville.edu \
    --to=agdavi01@louisville.edu \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).