changeset 39399:c54d4607e8aa

bash_completion: complete arguments for --color and --pager
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 02 Sep 2018 08:40:57 +0800
parents 8ab79580047f
children 213c0493cea0
files contrib/bash_completion
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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