I have a script called teleport
in my path. When I type tele
and hit tab, I'd like for tab-completion to complete this to teleport
.
However, there's another program installed on my system: telepathy-gabble-xmpp-console
This starts with the same letters, so tab completion only gets up to telep
.
If this were my system, I would just remove that one executable to improve my workflow. However, this is a shared server. (Accounts are not shared.)
Alternately, I could change my $PATH
to exclude it. However, telepathy-gabble-xmpp-console
is in /bin
, and obviously I can't just remove /bin
from my path.
The solutions described in this thread don't work, because defining a function or alias will still autocomplete to that function or alias.
How do I take a single executable out of my $PATH
?
(Yes, I realize that this is a lot of work for a small benefit.)
tele
toteleport
, and then you don't even need to hit tab. – Sparhawk Jan 27 '19 at 05:18bash, version 4.4.23(1)
. – Nick ODell Jan 27 '19 at 17:51