zsh-users
 help / color / mirror / code / Atom feed
From: Sartoo <sartoo@gmx.de>
To: "L:ZSH-users" <zsh-users@sunsite.dk>
Subject: Re: Coolest prompt?
Date: Fri, 18 Jun 2004 18:08:35 +0200	[thread overview]
Message-ID: <20040618160835.GA24163@psycho.linux.lan> (raw)
In-Reply-To: <200406111329.45312.myrmidon@vfemail.net>

* 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


  parent reply	other threads:[~2004-06-18 16:08 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
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 [this message]
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=20040618160835.GA24163@psycho.linux.lan \
    --to=sartoo@gmx.de \
    --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).