From: Bart Schaefer <schaefer@brasslantern.com>
To: Axel Beckert <abe@deuxchevaux.org>, zsh-workers@zsh.org
Cc: zsh-workers@closedmail.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: Tue, 14 Feb 2017 08:40:38 -0800 [thread overview]
Message-ID: <170214084038.ZM9626@torch.brasslantern.com> (raw)
In-Reply-To: <20170214161817.GO27938@sym.noone.org>
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.
next prev parent reply other threads:[~2017-02-14 16:40 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 [this message]
2017-02-15 16:52 ` Axel Beckert
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=170214084038.ZM9626@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=abe@deuxchevaux.org \
--cc=zsh-workers@closedmail.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).