Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Unexpected behavior with prompt -p {prompt name}
- X-seq: zsh-users 21613
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Unexpected behavior with prompt -p {prompt name}
- Date: Sat, 4 Jun 2016 10:07:05 -0700
- 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==
- In-reply-to: <CAKc7PVBMMnL0GxawyeBsPEu7+Zg+nRwnKXnYAMG3wVFs6+6k8Q@mail.gmail.com>
- 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: <CAKc7PVD1ETj8=32XEvj_gm+EGLDE3pNfK+Luocd3p=O8F6Fxkw@mail.gmail.com> <CAKc7PVBMMnL0GxawyeBsPEu7+Zg+nRwnKXnYAMG3wVFs6+6k8Q@mail.gmail.com>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author