From dacb6a493979404350aa1f6b598dc953672d01eb Mon Sep 17 00:00:00 2001 From: Valentin Haenel Date: Sun, 15 Feb 2015 19:49:43 +0100 Subject: [PATCH] fix the completion of the options --- _conda | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_conda b/_conda index 3b4016f..b3b7ec2 100644 --- a/_conda +++ b/_conda @@ -393,7 +393,7 @@ case $state in local -a last_item available_packages current_package last_item=$line[$CURRENT] available_packages=($( __conda_package_available )) - if [[ $last_item == '-' ]] || [[ $last_item == '--' ]] ; then + if [[ $last_item[1] == '-' ]] || [[ $last_item[1,2] == '--' ]] ; then _arguments -C $help_opts \ $env_opts \ $install_opts \