From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28897 invoked by alias); 4 Jun 2016 17:07:05 -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: 21613 Received: (qmail 66 invoked from network); 4 Jun 2016 17:07:04 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=4uKlAwgJOKmfvbFmGOdQfpFwvQ0JPROmmeImIb6RTg4=; b=RWmoozk2qXbTMbKOlpi+rXdBGMwvzD+punP/50qA2IQOyS3YbQ1h6KYamR+LDugibr TdQuNC2fakrotaAWAH3zFO6/GAIr88S5PJttPurKofBwdq1YLma5JYZVSHrblYMEuFIL a1CA3EWcX6xJZYaj8tTCbbsbXBu7f6HdvrDVydY8HvZBqjLlonTuiQtP/bcaGCJYst13 ey9V4g6TJ4x3wnvj7IcvM3RBW3+37b8UK8hhUC1fCbLvYvbgP1nPmxyMVlWJhAj9KcJe EMgRMUP+P7OUO4axhwaLl1c9lnJqfYRKnLbBOU0aKIEZHU9z9BFplzJGnYGKptjqaWVk C6Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=4uKlAwgJOKmfvbFmGOdQfpFwvQ0JPROmmeImIb6RTg4=; b=GBfe7vmv1GnNe5nNfy3cg4uIsJYdyoU9Oe/y0x5dTCWTttWhgqakn6yqf/55vMcv2E EK9rNpdScTKNxl/DrNCKF2AMi0X5HSc7ZXZyo5KqIAy2Ob+IgO0abrzDGwMOz6Cgb2on Z1HFoi+3i8Tn3VMKw41zvqhTT1stRq3qcXfwIBG35B35kprTRrjqjtL9XkNqPljDvnAS Laa243CIu7bYRovCphy4Q/ShgSh9gznNt+piqmiAVoQLXmuF1i9IFrntO3v6eZqy/RGg Z80AF1iw74tD4ynARjDu5aEakD8EjVtcsbwd70lxrKUtgH653qhBKQQ0tG9/nv8xGIyV f2yQ== X-Gm-Message-State: ALyK8tLe0bquTy4EqHQJ3kHa0WUCf4LtZpS5e/l4DQD4vPragEcb+RHHmCT7qHK6uwY/iQ== X-Received: by 10.98.47.70 with SMTP id v67mr13748698pfv.68.1465060023532; Sat, 04 Jun 2016 10:07:03 -0700 (PDT) From: Bart Schaefer Message-Id: <160604100705.ZM28351@torch.brasslantern.com> Date: Sat, 4 Jun 2016 10:07:05 -0700 In-Reply-To: Comments: In reply to Sebastian Gniazdowski "Re: Unexpected behavior with prompt -p {prompt name}" (Jun 4, 2:49pm) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh Users Subject: Re: Unexpected behavior with prompt -p {prompt name} MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jun 4, 2:49pm, Sebastian Gniazdowski wrote: } } Turns out I need %<< after %/? Seems logical but docs provide example } without %<< ("For example, if the current directory is `/home/pike', } the prompt `%8<..<%/' will expand to `..e/pike'.") The example is showing the entire contents of the prompt; the %<< is not needed if the prompt string ends after %/ but in your case there is more stuff following. Probably not most ideal example, though. A have a nagging thought that when first introduced, %<< could only truncate the entire remainder of the prompt and didn't stop at the next %<<, so when the example was made up there was probably no reason to close the truncation.