scop / bash-completion

Programmable completion functions for bash
GNU General Public License v2.0
2.95k stars 380 forks source link

File ~/.bash_completion no longer working after update to 2.14. #1235

Closed dataCobra closed 4 months ago

dataCobra commented 4 months ago

Hello,

I've searched for a while now but couldn't find an answer and hope the project people might be able to help me.

My ~/.bash_completion is no longer working on Arch and Void Linux.

It looked like that:

complete -F _ssh rssh
complete -F _ssh nvimssh
complete -F _pass pc
complete -F _tmuxinator tx
complete -F _sudo doas

After a little bit of reading I've changed it to the following but also without progress:

_comp_complete_load _comp_cmd_ssh 
complete -F _comp_cmd_ssh rssh

_comp_complete_load _comp_cmd_ssh
complete -F _comp_cmd_ssh nvimssh

_comp_complete_load _pass 
complete -F _pass pc

_comp_complete_load _tmuxinator
complete -F _tmuxinator tx

_comp_complete_load _comp_cmd_sudo
complete -F _comp_cmd_sudo doas

What is the recommended way to accomplish the completion for my aliases after the update?

akinomyoga commented 4 months ago
_comp_load ssh &&
  complete -F _comp_cmd_ssh rssh nvimssh

_comp_load pass &&
  complete -F _pass pc

_comp_load tmuxinator &&
  complete -F _tmuxinator tx

_comp_load sudo &&
  complete -F _comp_cmd_sudo doas
dataCobra commented 4 months ago

Thank you! That fixed the problem. :)