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

Re: PROMPT_SP and empty PROMPT_EOL_MARK



On Dec 5, 10:10pm, Mikael Magnusson wrote:
}
}               If not set or empty, the default  behavior
}               is equivalent to the value `%B%S%#%s%b'.
} 
} What is the rationale for disallowing an empty indicator?

Probably so that you can declare it as a local without having to
explicitly unset it afterwards.

You can get the effect you want with something like

PROMPT_EOL_MARK='%{%}'

or

PROMPT_EOL_MARK='%<<'

In fact because prompt expansion is applied to PROMPT_EOL_MARK *before*
the precmd functions are called, there are all sorts of interesting side
effects I hadn't previously considered ...



Messages sorted by: Reverse Date, Date, Thread, Author