diff --git a/_conda b/_conda index 05bbaa7..24f463d 100644 --- a/_conda +++ b/_conda @@ -159,13 +159,15 @@ local -A opt_args __conda_envs(){ local -a envs unnamed sort globalfirst localenvs globalenvs - local -a ls_opts=("-1") + local -a ls_opts local -a describe_opts local localenvspath # only parse environments.txt (including unnamed envs) if asked by the user zstyle -s ":conda_zsh_completion:*" show-unnamed unnamed zstyle -s ":conda_zsh_completion:*" sort-envs-by-time sort zstyle -s ":conda_zsh_completion:*" show-global-envs-first globalfirst + + ls_opts=("-1") if test -n "$sort"; then ls_opts+=("-t") describe_opts+=("-V")