2
votes
1answer
629 views

Bash Completion Script Help

So I'm just starting to learn about bash completion scripts, and I started to work on one for a tool I use all the time. First I built the script using a set list of options: _zf_comp() { local ...
5
votes
2answers
1k views

Bash: menu-complete only for few matches

With Bash auto-completion, is there a way to cycle through matches using menu-complete only if there are 1-2 options, and use listing with complete otherwise? Example home directory contains ...
2
votes
3answers
817 views

Bash completion dynamic behavior

I would like to have 2 different behavior of "tab" depending of the usage context. I would like to have the default behavior of bind '"\t":complete' any time except when users are trying to complete ...