Skip to content

Commit

Permalink
Merge pull request #46 from hwalinga/old-zsh-cannot-set-initial-value
Browse files Browse the repository at this point in the history
Set initial value outside of local. Fixes #42
  • Loading branch information
esc committed Feb 27, 2024
2 parents 2cc833a + 9ee803c commit 4fce479
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _conda
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 4fce479

Please sign in to comment.