From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29171 invoked by alias); 20 Mar 2013 20:18:11 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17719 Received: (qmail 27107 invoked from network); 20 Mar 2013 20:18:01 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at trustfood.org does not designate permitted sender hosts) Date: Wed, 20 Mar 2013 21:17:56 +0100 From: Eric Smith To: zsh-users@zsh.org Subject: Re: truncating string in .zprofile Message-ID: References: <20130320194102.GB89285@phisen.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130320194102.GB89285@phisen.local> User-Agent: Mutt/1.5.21 (2010-09-15) > > What is the solution? > > preexec() { > print -Pn "\033k\033\134\033k["${1[1,30]}"]\033\134" > } > Yummy! Eric