zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: Unexpected behavior with prompt -p {prompt name}
Date: Sat, 4 Jun 2016 10:07:05 -0700	[thread overview]
Message-ID: <160604100705.ZM28351@torch.brasslantern.com> (raw)
In-Reply-To: <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.


      reply	other threads:[~2016-06-04 17:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-04  8:42 Sebastian Gniazdowski
2016-06-04 12:49 ` Sebastian Gniazdowski
2016-06-04 17:07   ` Bart Schaefer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=160604100705.ZM28351@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).