Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Zsh completion configuration with history-words as another group to _complete
- X-seq: zsh-workers 31069
- From: joe M <joe9mail@xxxxxxxxx>
- To: zsh-users@xxxxxxx, zsh-workers@xxxxxxx
- Subject: Re: Zsh completion configuration with history-words as another group to _complete
- Date: Tue, 26 Feb 2013 02:23:14 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com; s=20120113;        h=mime-version:x-received:in-reply-to:references:date:message-id         :subject:from:to:content-type;        bh=TpRyNht9OBCXes4vS/zCitmljaWhnkd9phe/k+lVAxc=;        b=JF5sIYJjPDRaFiHD/wb1E+/D8hbMhxDJAmJruPIXssWrfjFdYA0q4U97MEutfqz/bd         zY/TtaKK+nEFLwy5Qmtt1oH9BUv/Mha8U/imoxvcfSsMC2jM1zMdtmxsUYUMl+69tjjp         gtOcYg2GcVcv/64Nh0ehRR8uktxUUjZoAPkvnx3TIwrmLe61Cd62SsGfOTdalqGUpuGD         x+fndYgQxisTAG9BAgXIsYX/XeAZ6txrYcK1aUfP/3mEsr1SC4p7iJPRGfj1GNlqq+D/         2ounyAk4hpbAR2kTp+a/xkZ94RYVKel/LLatpS9tSFJsKhw3t8UcRgGMLEvCZExFQ1uQ         QNOQ==
- In-reply-to: <CAHjjW152=f9aBk52CxpFWWioPi__U04eEktdW5iWVTkYSDMr6A@mail.gmail.com>
- 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: <CAHjjW152=f9aBk52CxpFWWioPi__U04eEktdW5iWVTkYSDMr6A@mail.gmail.com>
Hello,
> if I should be looking at changing _complete to add the
> _history_words_list as a tag within the  _complete function instead.
if I change /usr/share/zsh/5.0.2/functions/Completion/Zsh/_command_names,
by changing the below lines to:
defs=(
  'commands:external command:_path_commands'
)
to
defs=(
 'history:history words:_history_complete_word'
  'commands:external command:_path_commands'
)
It seems to work. Being a newbie, I am not sure if this is a reliable
approach. Any thoughts, please?
Thanks
Joe
Messages sorted by:
Reverse Date,
Date,
Thread,
Author