]>
Tony Duckles's Git Repositories (git.nynim.org) - dotfiles.git/blob - .bash_completion.d/fabric.bash
2 # Bash completion for fabric
3 # (https://gist.github.com/exhuma/2136677)
5 function _fab_complete
() {
7 if [[ -f "fabfile.py" || -d "fabfile" ]]; then
8 cur
="${COMP_WORDS[COMP_CWORD]}"
9 COMPREPLY
=( $(compgen -W "$(fab -F short -l)" -- ${cur}) )
12 # no fabfile.py found. Don't do anything.
17 complete -o nospace -F _fab_complete fab