zsh-workers
 help / color / mirror / code / Atom feed
From: Axel Beckert <abe@deuxchevaux.org>
To: zsh-workers@zsh.org
Subject: 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)
Date: Wed, 15 Feb 2017 17:52:24 +0100	[thread overview]
Message-ID: <20170215165224.GT27938@sym.noone.org> (raw)
In-Reply-To: <170214084038.ZM9626@torch.brasslantern.com>

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@deuxchevaux.org  (Mail)
 X   See http://www.nonhtmlmail.org/campaign.html | abe@noone.org (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://abe.noone.org/ (Web)


      reply	other threads:[~2017-02-15 16:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-07  7:48 Axel Beckert
2017-02-10 17:59 ` Bart Schaefer
2017-02-14 15:32   ` Axel Beckert
2017-02-14 16:18     ` Axel Beckert
2017-02-14 16:40       ` Bart Schaefer
2017-02-15 16:52         ` Axel Beckert [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170215165224.GT27938@sym.noone.org \
    --to=abe@deuxchevaux.org \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).