Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Unexpected behavior with prompt -p {prompt name}



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