Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
The zsh equivalent to Bash's "complete -W" to complete a command using only a list of words
- X-seq: zsh-users 21433
- From: Shlomi Fish <shlomif@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: The zsh equivalent to Bash's "complete -W" to complete a command using only a list of words
- Date: Sat, 9 Apr 2016 13:27:39 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=+bJYZg8PE1IycyUD4sbRSynaWieEXYSwEwzvTAi6fzE=; b=oC04S8vQgOlYP1snPIlM7RWiMSr7xj0K2l8xyh8+QzkhF/N1NhpNjwQuN/Zcb26wHc M88+/j0dPi1XYjSL3ElHkigpmHJ1cxIfm2AbDvw3Ld83hUgUWQrEkVUtHUVjU3VvqIVO mB3i3UzugJg/Ax+aFhrRJXIZ9SqZ6bkKVqgblZqU2kAZqEipwGNLltMSHcut99u/GDiy 1Dpy1rKjwIYhKDBf6QQPDY/2Wo7YT6EhI1hczHmOqrbRVP7k4erpu3M7LJbsXEwSpeXt PxOTZTbvCOsPrn2K1J54yrAZYej26ZlM5Tu2V+6I6UfF5zFvHpR9CtNxoftfT9gzmIIi ifTg==
- 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
Hi all,
I am looking for the zsh equivalent of this bash command to complete a
command using a list of words:
complete -W "$(cat ${__themes_dir}/list-of-themes.txt)" "Theme"
In bash, I can do Theme[space][tab] and it will give me completions only
from the designated words / options / strings.
How can I achieve that using zsh? I want a shell command/built-in for this
- not #compdef / etc.
My Googling/DuckDuckGoing failed me on this.
Regards,
-- Shlomi Fish
--
------------------------------------------
Shlomi Fish http://www.shlomifish.org/
Chuck Norris helps the gods that help themselves.
Please reply to list if it's a mailing list post - http://shlom.in/reply .
Messages sorted by:
Reverse Date,
Date,
Thread,
Author