Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: completion script name clashing on bash #1903

Merged
merged 4 commits into from Apr 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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