Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: reinventing print_exit_value
- X-seq: zsh-users 9015
- From: Nikolai Weibull <mailing-lists.zsh-users@xxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-users <zsh-users@xxxxxxxxxx>
- Subject: Re: reinventing print_exit_value
- Date: Mon, 4 Jul 2005 01:35:11 +0200
- In-reply-to: <200507040104.41345.cht@xxxxxxxxx>
- Mail-followup-to: zsh-users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <200507032356.17308.cht@xxxxxxxxx> <20050703223209.GA5083@xxxxxxxxxxxxxxxx> <200507040104.41345.cht@xxxxxxxxx>
Christian Taylor wrote:
> I know, I tried it both in the left and the right prompt, but for some reason
> I just didn't like it. A PRINT_EXIT_VALUE-style output on an extra line suits
> me more.
You know that a prompt can be more than one line, right? Use
$prompt_newline with the prompt module. You can easily put the
exit status above or below the rest of the prompt,
nikolai
--
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author