-
-
Save bitprophet/97c989879633bc00b094 to your computer and use it in GitHub Desktop.
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
| # Fabric completion | |
| have fab && | |
| { | |
| _fabric() | |
| { | |
| local cur prev | |
| COMPREPLY=() | |
| _get_comp_words_by_ref cur prev | |
| COMPREPLY=( "${COMPREPLY[@]}" $( compgen -W \ | |
| "$( fab --shortlist )" \ | |
| -- "$cur" ) ) | |
| return 0 | |
| } | |
| complete -F _fabric fab | |
| } | |
| # Local variables: | |
| # mode: shell-script | |
| # sh-basic-offset: 4 | |
| # sh-indent-comment: t | |
| # indent-tabs-mode: nil | |
| # End: | |
| # ex: ts=4 sw=4 et filetype=sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment