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

Re: promptcr workaround



On Tue, Mar 01, 2005 at 12:17:43AM -0800, Karl Chen wrote:
> Here's a way to simulate adding the \n only when necessary:
> 
>     function precmd {
>         echo -n ${(l:$COLUMNS:::)}
>     }

Nice!  I have the no_unset option turned on, so your suggestion outputs
a warning for every precmd, so I changed the echo to this:

    echo -n ${(l:$COLUMNS:::):-}

Thanks for the nice heuristic!

..wayne..



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