# HG changeset patch # User Anton Shestakov # Date 1535848857 -28800 # Node ID c54d4607e8aae0515180abf52b47a871103ae58a # Parent 8ab79580047f91f30ea6bc04b4bbfc3aab8748ea bash_completion: complete arguments for --color and --pager diff -r 8ab79580047f -r c54d4607e8aa contrib/bash_completion --- a/contrib/bash_completion Sun Sep 02 08:39:17 2018 +0800 +++ b/contrib/bash_completion Sun Sep 02 08:40:57 2018 +0800 @@ -206,6 +206,18 @@ _hg_fix_wordlist return ;; + --color) + local choices='true false yes no always auto never debug' + COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$choices' -- "$cur")) + _hg_fix_wordlist + return + ;; + --pager) + local choices='true false yes no always auto never' + COMPREPLY=(${COMPREPLY[@]:-} $(compgen -W '$choices' -- "$cur")) + _hg_fix_wordlist + return + ;; esac if [ -z "$cmd" ] || [ $COMP_CWORD -eq $i ]; then