Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PROMPT_SP and empty PROMPT_EOL_MARK
- X-seq: zsh-workers 28482
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: PROMPT_SP and empty PROMPT_EOL_MARK
- Date: Sun, 05 Dec 2010 13:41:09 -0800
- In-reply-to: <AANLkTikjsQPt5QCCJnFGRJswVq_N=3P+fNnYhCSYdkQ0@xxxxxxxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <AANLkTikjsQPt5QCCJnFGRJswVq_N=3P+fNnYhCSYdkQ0@xxxxxxxxxxxxxx>
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