Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: rxvt completion
- X-seq: zsh-users 24400
- From: dana <dana@xxxxxxx>
- To: Dave Woodfall <dave@xxxxxxx>
- Subject: Re: rxvt completion
- Date: Mon, 4 Nov 2019 21:04:00 -0600
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=+KHKk8ItbAfrhu5wRBMSyVutnpdAWkM0EXHq5Q9LTEc=; b=RklllZv8lEfWxaWAvG7fz/AOTK1JbOfzW6yyqMhdaFRU9XBg9ygvUh49w0XRFIPQqV F64zrY2g9+Ka7SLUW1bi2D+E2/0fN0QLbzznpKzRA1uWBaPqGRtVsQoNKHqUXadj4ZTr jG2yFdA0Itcs38Eh0xIDIZdLTL5iQTJgOJkCeEpPGo/raEd8jNxPmFLC5cO+hh6de+M1 KxI1dmWcEtwNtzzsozHbuA5ZF7tOw5lnbzuI+UxihgxFpdLD46SFYvX7nj4quh7NeqxQ Ejr3jXI42FG10hwfVxcTCpPNlYJ3FyfjdtUwJEWK5ohrmB9N4RymOFKuXW48UEuz6RxA qrPA==
- In-reply-to: <20191104220941.GC28517@blackswan>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20191104220941.GC28517@blackswan>
On 4 Nov 2019, at 16:09, Dave Woodfall <dave@xxxxxxx> wrote:
> If I submit a patch for rxvt completion, would it be accepted, as it
> would mean removing rxvt from _urxvt's compdef?
>
> I'm guessing that some *nixes out there rename urxvt to rxvt?
Debian and its derivatives do (or it goes by both names at least).
Usually when there are different implementations of a tool with the same name,
you use _pick_variant and/or check $OSTYPE to determine which one to complete
for. Depending on how similar they are, you might keep them both in the same
function, or make them separate and conditionally call one from the other. I'm
not sure which is better for rxvt (do they still have a lot of shared options
or are they completely different?), but if you grep the repo for _pick_variant
you'll see lots of examples you can borrow from
dana
Messages sorted by:
Reverse Date,
Date,
Thread,
Author