Skip to content
Myr

Use readline's default filename completion if completion fails

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

If the `compspec` generates no matches it uses bash filename completion instead.

authored by Tamer TAS · committed by Tamer TAS · parent b3f29e9 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:bash_completions.go+2 added-2 removed
233 unmodified lines
234}235236`, name)237 fmt.Fprintf(out, `if [[ $(type -t compopt) = "builtin" ]]; then238 complete -F __start_%s %s238 complete -o default -F __start_%s %s239else240 complete -o nospace -F __start_%s %s240 complete -o default -o nospace -F __start_%s %s241fi242243`, name, name, name, name)244 fmt.Fprintf(out, "# ex: ts=4 sw=4 et filetype=sh\n")
196 unmodified lines