Skip to content

Instantly share code, notes, and snippets.

@bitprophet
Created August 20, 2011 00:22
Show Gist options
  • Select an option

  • Save bitprophet/97c989879633bc00b094 to your computer and use it in GitHub Desktop.

Select an option

Save bitprophet/97c989879633bc00b094 to your computer and use it in GitHub Desktop.
# 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