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 Tue, Feb 14, 2017 at 08:40:38AM -0800, Bart Schaefer wrote:
> On Feb 14,  5:18pm, Axel Beckert wrote:
> } What I was looking for seems to be $ZSH_ARGZERO. So far that works
> } fine. I hope, it's backwards compatible to at least 4.3.9 from Debian
> } 7 Wheezy. :-)
> 
> Sadly, I think not.  ZSH_ARGZERO was only added in the past year.
> 
> It should work backwards-portably to do e.g.
> 
> PS1="${${ZSH_ARGZERO:-%N}:t} %# "
> 
> because %N will do what you want for versions where ZSH_ARGZERO is not
> defined.

Thanks for that idea!

		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