zsh-users
 help / color / mirror / code / Atom feed
From: Sami Samhuri <sami@no-eff-eks.com>
To: "L:ZSH-users" <zsh-users@sunsite.dk>
Subject: Re: Coolest prompt?
Date: Thu, 17 Jun 2004 10:50:23 -0700	[thread overview]
Message-ID: <20040617175023.GH10284@no-eff-eks.com> (raw)
In-Reply-To: <200406111329.45312.myrmidon@vfemail.net>

[-- Attachment #1: Type: text/plain, Size: 930 bytes --]

* It was Fri, Jun 11, 2004 at 01:29:45PM +0300 when Ziggy said:
> ZSH allows the user to create interesting prompts. Time displaying, menu bars 
> and colors.
> 
> Post your prompt (and .zshrc) here.

Mine is quite simple, but I find it to be useful without cluttering up
my terminal.

sjs@diavolo ~ % grep PROMPT .zshrc
# PROMPT SUBTITUTION
export PROMPT=$'%(?..%{\e[41;38m%}%B-%?-%b%{\e[0m%} )%(1j.%{\e[01;33m%}[%j] .)%{\e[01;36m%}%n@%m%{\e[0m%} %{\e[01;32m%}%2~%{\e[0m%} %B%#%b '
export RPROMPT=$'%{\e[01;31m%}[%!]%{\e[0m%}'		# history # on right

It ends up looking like the above, however when there are jobs running
it prepends [N] in yellow, where N is the number of jobs running. If the
exit code of the previous command was non-zero in white on red it
displays -$?- before the prompt. Where ~ is above it displays 2
directories of $PWD. (eg. ~/devel or kernel/linux-2.6.7-rc3-mm1)

-- 
Sami Samhuri

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2004-06-17 17:54 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 [this message]
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=20040617175023.GH10284@no-eff-eks.com \
    --to=sami@no-eff-eks.com \
    --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).