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

Re: zle clear-screen, exit status



Hi,

2010/10/19 Brian Lewis <brian@xxxxxxxx>:
> My prompt displays $?, the program exit status. When I hit Ctrl-L, I'd
> like $? to be set to 0 somehow before the prompt is redisplayed.
>
> I can't figure out how to do it. It is as if $? is saved before my
> widget is called, and restored after.
>
> Here's what I've been playing with:
>
> [...]

bindkey -s "^L" "clear\n"

is enough :)

-- 
JÃrÃmie



Messages sorted by: Reverse Date, Date, Thread, Author