Augment an existing completion function with my own #1400
-
| 
 I already have the function working. But if I  | 
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
| You can call the bash-completion function at the beginning of  # For bash-completion >= 2.12
_comp_load make
_myfunction() {
  _comp_cmd_make "$@"
  # ...
  COMPREPLY+=(...)
}
complete -F _myfunction make
# For bash-completion < 2.12
__load_completion make
_myfunction() {
  _make "$@"
  # ...
  COMPREPLY+=(...)
}
complete -F _myfunction make | 
Beta Was this translation helpful? Give feedback.
You can call the bash-completion function at the beginning of
_myfunction.