Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: precmd, preexec, and supplied prompt themes
- X-seq: zsh-users 12004
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: precmd, preexec, and supplied prompt themes
- Date: Sat, 13 Oct 2007 14:40:46 -0700
- In-reply-to: <20071013135858.18e842df.wgscott@xxxxxxxxxxxxxxxxxx>
- 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> <071012202721.ZM13638@xxxxxxxxxxxxxxxxxxxxxx> <20071013135858.18e842df.wgscott@xxxxxxxxxxxxxxxxxx>
On Oct 13, 1:58pm, wgscott@xxxxxxxxxxxxxxxxxx wrote:
}
} Well, that pretty much ensured I wouldn't get any work done this weekend.
:-)
} The first is that the prompt_simple_preview function doesn't work.
"Doesn't work" how?
Note that the prompt_simple_setup file needs to be found in a directory
in your $fpath to be loaded as a recognized theme by "promptinit". If
it's not in $fpath, you'll get
% prompt -p simple
Unknown theme: simple
%
Is that what's happening?
Also your attempt to display the available colors in prompt_simple_help
is not working for me; "black" compes out white, and neither it nor
"white" are visible on the white background of my xterm. I'd suggest
restricting the help to bare text and leaving the color demonstrations
to the preview.
} The second, and more fundamental one, is that I can't get the dynamic
} updating to work unless I issue these six lines in the shell itself,
} in addition to the prompt function:
}
} typeset -a preexec_functions
Try "typeset -ga preexec_functions" as was pointed out somewhere on this
thread.
- References:
- precmd, preexec, and supplied prompt themes
- Re: precmd, preexec, and supplied prompt themes
- Re: precmd, preexec, and supplied prompt themes
- Re: precmd, preexec, and supplied prompt themes
- Re: precmd, preexec, and supplied prompt themes
- Re: precmd, preexec, and supplied prompt themes
Messages sorted by:
Reverse Date,
Date,
Thread,
Author