Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to complete alias after alias of sudo?
- X-seq: zsh-users 22719
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: How to complete alias after alias of sudo?
- Date: Wed, 31 May 2017 09:43:10 +0100
- Cms-type: 201P
- In-reply-to: <20170531064655.GA8512@localhost.localdomain>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Organization: Samsung Cambridge Solution Centre
- References: <CGME20170531082709epcas5p4cb74739bb440049fd96ca18a08489bbd@epcas5p4.samsung.com> <20170531064655.GA8512@localhost.localdomain>
On Wed, 31 May 2017 14:46:55 +0800
Han Pingtian <hanpt@xxxxxxxxxxxxxxxxxx> wrote:
> But looks like I cannot complete the second alias by <tab>:
>
> % sd f<tab>
> external command
> fold foomatic-kitload
> ...
>
> only external commands listed.
This is down to how completion for "sd" is defined. As far as I can see
that's not a standard completion --- I would guess it's simply adding
external commands rather than all commands in that context. (I've
confirmed that _precommand, which is the nearest standard completion
that I can think of, does complete aliases in the corresponding case.)
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author