Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Coolest prompt?
- X-seq: zsh-users 7563
- From: Sartoo <sartoo@xxxxxx>
- To: "L:ZSH-users" <zsh-users@xxxxxxxxxx>
- Subject: Re: Coolest prompt?
- Date: Fri, 18 Jun 2004 18:08:35 +0200
- In-reply-to: <200406111329.45312.myrmidon@xxxxxxxxxxx>
- Mail-followup-to: "L:ZSH-users" <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <200406111329.45312.myrmidon@xxxxxxxxxxx>
* 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author