diff options
author | 2005-05-09 04:28:25 +0000 | |
---|---|---|
committer | 2005-05-09 04:28:25 +0000 | |
commit | 71cb9b4f1dd95af2e7d00c7320c8ddb69db3ae10 (patch) | |
tree | 0c4e01256e5e72b546348b3a062ade80655208a9 /misc | |
parent | add nocolour to TODO list (diff) | |
download | eselect-71cb9b4f1dd95af2e7d00c7320c8ddb69db3ae10.tar.gz eselect-71cb9b4f1dd95af2e7d00c7320c8ddb69db3ae10.tar.bz2 eselect-71cb9b4f1dd95af2e7d00c7320c8ddb69db3ae10.zip |
Parse list-modules/usage instead of relying on the assumption that the default action will give us what we want.
svn path=/trunk/; revision=88
Diffstat (limited to 'misc')
-rw-r--r-- | misc/eclectic.bashcomp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/eclectic.bashcomp b/misc/eclectic.bashcomp index 6a3ca2a..6cded30 100644 --- a/misc/eclectic.bashcomp +++ b/misc/eclectic.bashcomp @@ -13,9 +13,9 @@ _eclectic() { sedcmd='sed -n -e s/^[[:space:]]\+.*1m\([^[:space:]][[:alnum:]-]\+\).*[[:space:]]\+.*$/\1/p' if [[ ${COMP_CWORD} -eq 1 ]] ; then - possibles=$(eclectic | ${sedcmd}) + possibles=$(eclectic list-modules | ${sedcmd}) elif [[ ${COMP_CWORD} -eq 2 ]] ; then - possibles=$(eclectic ${prev} | ${sedcmd}) + possibles=$(eclectic ${prev} usage | ${sedcmd}) fi COMPREPLY=($(compgen -W "${possibles}" -- ${cur})) |