Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: precmd, preexec, and supplied prompt themes
- X-seq: zsh-users 12000
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: precmd, preexec, and supplied prompt themes
- Date: Fri, 12 Oct 2007 20:27:21 -0700
- In-reply-to: <35490.69.3.191.19.1192241340.squirrel@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <DD973F2C-E6A0-4FCA-96F5-6C96701DC677@xxxxxxxxxxxxxxxxxx> <20071012215906.GA8935@mastermind> <071012185005.ZM2921@xxxxxxxxxxxxxxxxxxxxxx> <35490.69.3.191.19.1192241340.squirrel@xxxxxxxxxxxxxxxxx>
On Oct 12, 7:09pm, William Scott wrote:
}
} Bart Schaefer wrote:
} > We need some new ones.
}
} OK, here's two:
These are fine prompts, but they aren't quite themes, yet.
The prompt_ZZZ_setup file for any theme ZZZ ought to define at least
two functions:
prompt_ZZZ_help
prompt_ZZZ_setup
See Functions/Prompts/prompt_oliver_setup for a simple example. One
other function may be defined as well:
prompt_ZZZ_preview
See Functions/Prompts/prompt_elite_setup for a short example of that.
Any other prompt_*_function or precmd/preexec are just helpers; the
theme system only uses the above three.
I know, some of the existing themes don't define help or preview, but
that doesn't mean they shouldn't.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author