Skip to content

Commit

Permalink
Add click's fix for fish autocomplete not working on click 8.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
KAUTH committed Aug 30, 2023
1 parent 29e2a63 commit 652d61f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions auto_click_auto/core.py
Expand Up @@ -94,14 +94,12 @@ def enable_click_shell_completion(
# create it if it doesn't already exist.
create_file(file_path=completer_script_path)

# Completion implementation: `eval` command in shell configuration
eval_command = (
f"eval (env {click_env_var}={shell.value}_source "
f"{program_name})"
command = (
f"{click_env_var}={shell.value}_source {program_name} | source"
)
add_shell_configuration(
shell_config_file=completer_script_path,
config_string=eval_command,
config_string=command,
verbose=verbose,
)

Expand Down

0 comments on commit 652d61f

Please sign in to comment.