Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: truncating string in .zprofile
- X-seq: zsh-users 17719
- From: Eric Smith <Eric.Smith@xxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: truncating string in .zprofile
- Date: Wed, 20 Mar 2013 21:17:56 +0100
- In-reply-to: <20130320194102.GB89285@phisen.local>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <mailbox-13443-1363803840-947330@pepper.0.0.200> <20130320194102.GB89285@phisen.local>
> > What is the solution?
>
> preexec() {
> print -Pn "\033k\033\134\033k["${1[1,30]}"]\033\134"
> }
>
Yummy!
Eric
Messages sorted by:
Reverse Date,
Date,
Thread,
Author