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

Re: get the number of active jobs to show in the prompt?



On Oct 3,  2:46pm, Bart Schaefer wrote:
> Subject: Re: get the number of active jobs to show in the prompt?
>     function redraw-prompt {
> 	zle .clear-screen
> 	if (( BUFFERLINES < LINES - 1 ))
> 	then
> 	    precmd
> 	    echotc sc
> 	    echotc ho
> 	    print -nP "$PS1"
> 	    echotc rc
> 	fi
> 	return 0
>     }

I just realized you need to add "zle -R" right before the call to "precmd".



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