I'm using SaltStack. I would like to auto-complete the minion name when calling the salt command.
Then typing salt in<tab>inTab -->→ salt integration-<tab>Tab,; I can see it works as expected:
$ salt integration-
integration-c integration-u integration-u2
$ salt integration-TabTab
integration-c integration-u integration-u2 To use with sudo, I have added complete -cf sudo into ~/.bashrc, but it didn't work: sudo salt in<tab returned nothing.
sudo salt inTabreturned nothing.
UPDATE Sat Jul 12 08:51:23 ICT 2014Update
Oh, the first thing I would like to say is sometimesometimes it works:
$ sudo salt integration-
integration-c integration-u integration-u2
$ sudo salt integration-TabTab
integration-c integration-u integration-u2sometimeand sometimes it doesn't.
if you type sudo
sudo mkdir <tab><tab>TabTab, does does it show a list of directories directories?
$ sudo mkdir
.FontForge/ .djangopypi2/ .ievms/ .ssh/ .wireshark-etc/
$ sudo mkdir TabTab
.FontForge/ .djangopypi2/ .ievms/ .ssh/ .wireshark-etc/