Bash completion for fabric

As I was doing a routine migration of a WordPress site this morning I was looking at the fabric menu ( fab -l ) that had grown painfully long. And I wondered: “Would’nt it be nice if I counld just be typing the first letter in he fabric task and then hit tab to get the rest of it?”

Google next, and there on GitHub, just the thing I needed: Fabric-completion.

Enter Salt master, edit my user state, state.highstate, and voila: Fabric bash completion 🙂

It works for task aliases as well 😉