Skip to content

Commit

Permalink
fix: completion script name clashing on bash (#1903)
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin E. Coe <bencoe@google.com>
  • Loading branch information
jacobator and bcoe committed Apr 11, 2021
1 parent ecbc037 commit 8f62d9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/completion-templates.ts
Expand Up @@ -5,7 +5,7 @@ export const completionShTemplate = `###-begin-{{app_name}}-completions-###
# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc
# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.
#
_yargs_completions()
_{{app_name}}_yargs_completions()
{
local cur_word args type_list
Expand All @@ -24,7 +24,7 @@ _yargs_completions()
return 0
}
complete -o default -F _yargs_completions {{app_name}}
complete -o default -F _{{app_name}}_yargs_completions {{app_name}}
###-end-{{app_name}}-completions-###
`;

Expand Down

0 comments on commit 8f62d9a

Please sign in to comment.