Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: reinventing print_exit_value



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