From f65de52b7d9738f94190f025578f7a71711851f6 Mon Sep 17 00:00:00 2001 From: Valentin Haenel Date: Tue, 10 Feb 2015 15:43:11 +0100 Subject: [PATCH] implement completion for list --- _conda | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/_conda b/_conda index 2809a6f..f9d991b 100644 --- a/_conda +++ b/_conda @@ -103,6 +103,17 @@ case $state in '--json[report all output as json.]' \ '*:packages:__conda_packages_search' \ ;; + (list) + _arguments -C '(-h --help)'{-h,--help}'[show the help message and exit]' \ + '(-n --name=)'{-n,--name=}'[install into given conda environment]:environment:__conda_envs' \ + '(-p --prefix)'{-p,--prefix}'[full path to environment prefix]:path:_path_files' \ + '--json[report all output as json.]' \ + '(-c --canonical)'{-c,--canonical}'[output canonical names of packages only]' \ + '(-e --export)'{-e,--export}'[output requirement string only]' \ + '(-r --revisions)'{-r,--revision}'[list the revision history and exit]' \ + '--no-pip[Do not include pip-only installed packages]' \ + '*:regex:' \ + ;; (*) #_arguments -C $opts _path_files