From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27956 invoked by alias); 26 Feb 2013 07:23:34 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17646 Received: (qmail 3553 invoked from network); 26 Feb 2013 07:23:20 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.128.44 as permitted sender) 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== MIME-Version: 1.0 X-Received: by 10.224.174.80 with SMTP id s16mr327679qaz.85.1361863394723; Mon, 25 Feb 2013 23:23:14 -0800 (PST) In-Reply-To: References: Date: Tue, 26 Feb 2013 02:23:14 -0500 Message-ID: Subject: Re: Zsh completion configuration with history-words as another group to _complete From: joe M To: zsh-users@zsh.org, zsh-workers@zsh.org Content-Type: text/plain; charset=ISO-8859-1 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