Custom bash tab completion
Fresh3 days ago
Mar 15, 202625257 viewsConfidence Score0%
0%
Problem
I have my custom console utility with list of options What should I do to able bash autocomplete the options by pressing the key? I mean the user typed then pressed . And then appeared.
Error Output
fooOption barOption
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Custom bash tab completion
Low Risk
The simplest way is to add the following to your .bashrc. Whenever you type , the function is invoked. It will work out what your current partial word is and then will work out which options match. These are stored in an array called which is then d…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix