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)
- X-seq: zsh-workers 40545
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Axel Beckert <abe@xxxxxxxxxxxxxxx>, zsh-workers@xxxxxxx
- 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
- Authentication-results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=brasslantern-com.20150623.gappssmtp.com
- Cc: zsh-workers@xxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject:cc :mime-version; bh=2EdZpOJaoZgDnD0PipYqYBhf/37J5k7sEJAGWTRyrK4=; b=MPtXDyvKScBR9CwvkVGFoO3JJAH1a7Sb1EAqZhTwwjnswQyvGB9nZGvQbxevz2yIQM 90z0Ot5SSC8VE78ashlB2nB+SZ0RUD05/NBIn94zrO1kOOKgALBpiDRtFh394kP2/q4L 9L/Q9Yc+yRYNxz/PfQnDEycbWLLiZD4KBaWBvOI0CJWzV2YNsWy0aI/RI444csFBLyGV oILatauDhRbe5oa3cehB+sw3rGxXQhNrbn2I9x2RnPk0+GX+u0/aRBS8ZswdIENfQRhv lvFe3gzd2mMbzO6IV5i4te9ytPj0JDLdIoMPYVMMl+ARrKlDWHYfCrv13/566sgbpvjY ja5A==
- In-reply-to: <20170214161817.GO27938@sym.noone.org>
- 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: <20170207074826.GV27938@sym.noone.org> <170210095949.ZM9880@torch.brasslantern.com> <20170214153229.GN27938@sym.noone.org> <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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author