Skip to content
Myr

Explicitly check for zsh source var when determining shell type.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Nicholas Wiles · committed by David Lord · parent f17dead · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:click/_bashcomplete.py+1 added-1 removed
223 unmodified lines
224225226def bashcomplete(cli, prog_name, complete_var, complete_instr):227 if complete_instr.startswith('source'):228 shell = 'zsh' if complete_instr.endswith('zsh') else 'bash'228 shell = 'zsh' if complete_instr == 'source_zsh' else 'bash'229 echo(get_completion_script(prog_name, complete_var, shell))230 return True231 elif complete_instr == 'complete':232 return do_complete(cli, prog_name)
1 unmodified line