Skip to content

Commit

Permalink
Improve bash completion (#2056)
Browse files Browse the repository at this point in the history
If you do not generate a completion entry, use the default bash completion. If that also does not return a completion,
fall back to "readline" default filename completion.
  • Loading branch information
Nevon committed Nov 9, 2021
1 parent 3d2a6aa commit 774dc53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/completion-templates.ts
Expand Up @@ -24,7 +24,7 @@ _{{app_name}}_yargs_completions()

return 0
}
complete -o default -F _{{app_name}}_yargs_completions {{app_name}}
complete -o bashdefault -o default -F _{{app_name}}_yargs_completions {{app_name}}
###-end-{{app_name}}-completions-###
`;

Expand Down

0 comments on commit 774dc53

Please sign in to comment.