Patchwork [1,of,2] bash_completion: add more global options that receive an argument

login
register
mail settings
Submitter Anton Shestakov
Date Sept. 2, 2018, 12:54 a.m.
Message ID <14eaf06a028a010ca829.1535849687@neuro>
Download mbox | patch
Permalink /patch/34241/
State Accepted
Headers show

Comments

Anton Shestakov - Sept. 2, 2018, 12:54 a.m.
# HG changeset patch
# User Anton Shestakov <av6@dwimlabs.net>
# Date 1535848757 -28800
#      Sun Sep 02 08:39:17 2018 +0800
# Node ID 14eaf06a028a010ca829084acfb866823ad5714a
# Parent  57b2a02420cd3b42c757dc91df98435811603e3e
bash_completion: add more global options that receive an argument
Yuya Nishihara - Sept. 2, 2018, 5:15 a.m.
On Sun, 02 Sep 2018 08:54:47 +0800, Anton Shestakov wrote:
> # HG changeset patch
> # User Anton Shestakov <av6@dwimlabs.net>
> # Date 1535848757 -28800
> #      Sun Sep 02 08:39:17 2018 +0800
> # Node ID 14eaf06a028a010ca829084acfb866823ad5714a
> # Parent  57b2a02420cd3b42c757dc91df98435811603e3e
> bash_completion: add more global options that receive an argument

Queued, thanks.

Patch

diff --git a/contrib/bash_completion b/contrib/bash_completion
--- a/contrib/bash_completion
+++ b/contrib/bash_completion
@@ -152,7 +152,7 @@  shopt -s extglob
 {
     local cur prev cmd cmd_index opts i aliashg
     # global options that receive an argument
-    local global_args='--cwd|-R|--repository'
+    local global_args='--cwd|-R|--repository|--color|--config|--encoding|--encodingmode|--pager'
     local hg="$1"
     local canonical=0