Skip to content
Myr

__ltrim_colon_completions is not always available on macOS (#459)

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

* __ltrim_colon_completions is not always available on macOS, so bash-completion should check first

authored by Lucy Davies · committed by Eric Paris · parent 8d4ce35 · Browse files · 1 file+4 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+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:bash_completions.go+4 added-1 removed
130 unmodified lines
131 if [[ ${#COMPREPLY[@]} -eq 0 ]]; then132 declare -F __custom_func >/dev/null && __custom_func133 fi134135 # available in bash-completion >= 2, not always present on macOS136 if declare -F __ltrim_colon_completions >/dev/null; then135 __ltrim_colon_completions "$cur"137 __ltrim_colon_completions "$cur"138 fi139}140141# The arguments should be in the form "ext1|ext2|extn"142__handle_filename_extension_flag()
395 unmodified lines