Skip to content

Instantly share code, notes, and snippets.

@eightbitraptor
Created January 30, 2014 14:58
Show Gist options
  • Save eightbitraptor/8710249 to your computer and use it in GitHub Desktop.
Save eightbitraptor/8710249 to your computer and use it in GitHub Desktop.
# Autocomplete the list of authors configured in your Git Pair authors list
PAIRS=( $(git pair authors 2>&1 | awk '{print $NF}' | sed -e 's/authors//' | xargs echo -n) )
unset PAIRS[0]
complete -o default -W "${PAIRS[*]}" git pair
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment