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

Re: Fwd: Re: %N in prompt shows "_zsh_highlight_call_widget" on Ctrl-L instead of e.g. "/usr/bin/zsh" or "-zsh" since recently (#414)

Hi Bart,

On Fri, Feb 10, 2017 at 09:59:49AM -0800, Bart Schaefer wrote:
> On Feb 7,  8:48am, Axel Beckert wrote:
> } Everytime I press Ctrl-L in my xterm, %N inside my prompt shows
> } _zsh_highlight_call_widget instead of e.g. /usr/bin/zsh or -zsh
> In what circumstances would you expect to need %N in PS1?  That is,
> the reason to use any %-expando is to display information that will
> change after the prompt is assigned.  If there is no case in which
> you would expect %N to return something different, then you should
> not need to use it.

You're right. The main issue is probably that I wrote that part years
ago and was surprised that its behaviour changed. But I can't remember
anymore why I've chosen %N over $0. Will replace it with $0 and see if
that works out as expected.

		Kind regards, Axel
/~\  Plain Text Ribbon Campaign                   | Axel Beckert
\ /  Say No to HTML in E-Mail and News            | abe@xxxxxxxxxxxxxxx  (Mail)
 X   See http://www.nonhtmlmail.org/campaign.html | abe@xxxxxxxxx (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://abe.noone.org/ (Web)

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