Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: precmd, preexec, and supplied prompt themes
- X-seq: zsh-users 11999
- From: "William Scott" <wgscott@xxxxxxxxxxxxxxxxxx>
- To: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: precmd, preexec, and supplied prompt themes
- Date: Fri, 12 Oct 2007 19:09:00 -0700 (PDT)
- Cc: zsh-users@xxxxxxxxxx
- Importance: Normal
- In-reply-to: <071012185005.ZM2921@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <DD973F2C-E6A0-4FCA-96F5-6C96701DC677@xxxxxxxxxxxxxxxxxx> <20071012215906.GA8935@mastermind> <071012185005.ZM2921@xxxxxxxxxxxxxxxxxxxxxx>
Bart Schaefer wrote:
> On Oct 12, 5:59pm, Matthew Wozniski wrote:
> }
> } themes should be using
> }
> } typeset -a precmd_functions
> } precmd_functions += my_prompt_precmd
> }
> } and
> }
> } typeset -a preexec_functions
> } preexec_functions += my_prompt_preexec
> }
> } If you're talking about prompt themes supplied with zsh, I would
> } consider it a bug in the package if those aren't defined that way.
>
> Most of the prompt themes pre-date the existence of the pre*_functions
> arrays, and aren't being maintained because their inventors are no longer
> zsh-* list participants.
>
> Stomping precmd is the least of the problems with several of those
> themes; they rely on now-ancient Linux console fonts for color shading,
> assume light-colored text on a dark background, etc. We need some new
> ones.
>
OK, here's two:
http://xanana.ucsc.edu/Library/init/zsh/local-functions/general/prompt_kerbaugh_setup
in honor of Gary Kerbaugh, who introduced me to zsh (I'll clean it up for
zsh if you want it), and
http://xanana.ucsc.edu/Library/init/zsh/local-functions/general/prompt_simple_setup
my very own minimalistic/nihilistic theme.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author