Created
October 15, 2010 17:24
-
-
Save evansd/628574 to your computer and use it in GitHub Desktop.
Tab-completion script for Fabric (Debian/Ubuntu style)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| have fab && { | |
| _fab_completion() | |
| { | |
| COMPREPLY=() | |
| local cur tasks | |
| tasks=$(fab --shortlist 2>/dev/null) | |
| _get_comp_words_by_ref cur | |
| COMPREPLY=( $(compgen -W "${tasks}" -- ${cur}) ) | |
| } | |
| complete -F _fab_completion fab | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment