3

I've noticed that some console commands (like sudo or xargs) are using different kind of suggestions when I press Tab (they suggest programs instead of files).

Is there a way to mimic that kind of behavior for self written bash script?

1

This behaviour is called "Programmable Completion". You can customize it. See man bash for details.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.