Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: precmd, preexec, and supplied prompt themes
- X-seq: zsh-users 11996
- From: Matthew Wozniski <godlygeek@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: precmd, preexec, and supplied prompt themes
- Date: Fri, 12 Oct 2007 17:59:06 -0400
- Cc: wgscott@xxxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:date:from:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:x-editor:x-editor:user-agent; bh=E5U+RMzzPxBSD3OVCblgTnEY4EXfV56ZK82ZEnrT+fY=; b=cqqiRsC7PLmIrKUIDFWgZxCuGzrrFGJFp0rL7fft6AaJVWL++dtqhzCnrcthAGxCgbjTvi1kdqoiWJeh9aYw5eTUuCGrXllXcYaVfj8ioV1bVMZz0z0nJH3oNSdeyWRwZhy0CYuPQqDc3hyUWVj+dW6quPwYt9hnbfFnLy42kkI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:x-editor:user-agent; b=pZn7XkSXVxX3S5m/o+/hm9jbBU0Z+JrFT0zW3+e/DiK7zYJGRSp60VEcGS46yQvFEkIoyK3A++vivOIP5m5eHjs1HYQPs5+DkoNVIBLBvoKVGqEMn+BvGaBny5d1yMLHw+JHhheFuagWqpJhz5a8mo8jujPeFZQ9VZdwvIBVvMQ=
- In-reply-to: <DD973F2C-E6A0-4FCA-96F5-6C96701DC677@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <DD973F2C-E6A0-4FCA-96F5-6C96701DC677@xxxxxxxxxxxxxxxxxx>
On Fri, Oct 12, 2007 at 02:47:23PM -0700, William Scott wrote:
> Is there a simple way to prepend or append additional arguments to these
> (or any) functions? I've been doing something like this, but it seems
> hackish:
Check out the zsh man page, section SPECIAL FUNCTIONS, or just search
for 'hook function'. The long and short of it is that the prompt
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.
~Matt
Messages sorted by:
Reverse Date,
Date,
Thread,
Author