Skip to content

Instantly share code, notes, and snippets.

@tav
Last active December 17, 2015 11:59
Show Gist options
  • Save tav/5606739 to your computer and use it in GitHub Desktop.
Save tav/5606739 to your computer and use it in GitHub Desktop.
_optparse_completion() {
COMPREPLY=( $( \
COMP_LINE=$COMP_LINE COMP_POINT=$COMP_POINT \
COMP_WORDS="${COMP_WORDS[*]}" COMP_CWORD=$COMP_CWORD \
OPTPARSE_AUTO_COMPLETE=1 $1 ) )
}
if test "$PS1"; then
shopt -s extglob progcomp
complete -o default -F _optparse_completion html2domly
fi
@tav
Copy link
Author

tav commented May 19, 2013

Also run: git config --global color.ui auto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment