1

I want to make tab completion to complete on specific programs in path although there maybe other possible completion in path.

For example, if I type mpl and tab, it should complete to mplayer though there might be other programs in the path starting with mpl. I know of bash alias builtin for ~/.bashrc but thats not what I'm looking for.

slm
  • 369,824

1 Answers1

0

If you've installed the bash-completion package it includes everything you need in the way of examples. I'd look through any of the included files as examples. The ntpdate one is pretty basic.

$ less /etc/bash_completion.d/ntpdate
$ less /usr/share/bash-completion/ntpdate
slm
  • 369,824