[Bash-completion-commits] [bash-completion] 01/01: ccache: Add -o/--set-config arg name completion

Ville Skyttä scop-guest at moszumanska.debian.org
Sun Nov 30 11:06:51 UTC 2014


This is an automated email from the git hooks/post-receive script.

scop-guest pushed a commit to branch master
in repository bash-completion.

commit dfb2d01babcf00ecbb57c97e648d97881004797d
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun Nov 30 13:06:09 2014 +0200

    ccache: Add -o/--set-config arg name completion
---
 completions/ccache | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/completions/ccache b/completions/ccache
index 63f5a1c..611a197 100644
--- a/completions/ccache
+++ b/completions/ccache
@@ -14,6 +14,14 @@ _ccache()
         -h|--help|-V|--version|-F|--max-files|-M|--max-size)
             return
             ;;
+        -o|--set-config)
+            if [[ $cur != *=* ]]; then
+                COMPREPLY=( $( compgen -S = -W "$( $1 -p 2>/dev/null | \
+                    awk '$3 = "=" { print $2 }' )" -- "$cur" ) )
+                [[ $COMPREPLY == *= ]] && compopt -o nospace
+            fi
+            return
+            ;;
     esac
 
     $split && return

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git



More information about the Bash-completion-commits mailing list