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

Re: truncating string in .zprofile



On Wed, Mar 20, 2013 at 09:17:56PM +0100, Eric Smith wrote:
> Yummy!

Correcting myself:

preexec() {
    print -Pn "\033k\033\134\033k[${1[1,30]}]\033\134"
}

Paul.

-- 
Paul Hoffman <nkuitse@xxxxxxxxxxx>



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