Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
precmd, preexec, and supplied prompt themes
- X-seq: zsh-users 11995
- From: William Scott <wgscott@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: precmd, preexec, and supplied prompt themes
- Date: Fri, 12 Oct 2007 14:47:23 -0700
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hi folks:
I noticed most of the prompt themes use precmd and often preexec.
If either or both of these two functions are defined upstream, they
get clobbered.
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:
precmdarray=( $(which precmd | grep -v precmd | grep -v \}) )
function precmd { $precmdarray "all the other stuff" }
Thanks.
Bill Scott
Messages sorted by:
Reverse Date,
Date,
Thread,
Author