Set initial value outside of local.

This commit is contained in:
Hielke Walinga
2022-11-09 15:54:01 +00:00
parent 306e16f573
commit 9ee803cd86
+3 -1
View File
@@ -154,13 +154,15 @@ local -A opt_args
__conda_envs(){ __conda_envs(){
local -a envs unnamed sort globalfirst localenvs globalenvs local -a envs unnamed sort globalfirst localenvs globalenvs
local -a ls_opts=("-1") local -a ls_opts
local -a describe_opts local -a describe_opts
local localenvspath local localenvspath
# only parse environments.txt (including unnamed envs) if asked by the user # 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:*" show-unnamed unnamed
zstyle -s ":conda_zsh_completion:*" sort-envs-by-time sort zstyle -s ":conda_zsh_completion:*" sort-envs-by-time sort
zstyle -s ":conda_zsh_completion:*" show-global-envs-first globalfirst zstyle -s ":conda_zsh_completion:*" show-global-envs-first globalfirst
ls_opts=("-1")
if test -n "$sort"; then if test -n "$sort"; then
ls_opts+=("-t") ls_opts+=("-t")
describe_opts+=("-V") describe_opts+=("-V")