[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 2abfb8c11146b7f5e0cc59c5d3ba2cf9b4d47b8e

Ville Skyttä ville.skytta at iki.fi
Wed Apr 1 19:44:07 UTC 2009


The following commit has been merged in the master branch:
commit 2abfb8c11146b7f5e0cc59c5d3ba2cf9b4d47b8e
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Wed Apr 1 22:44:01 2009 +0300

    Add chkconfig --override and resetpriorities completions.

diff --git a/CHANGES b/CHANGES
index 39eaa03..1261727 100644
--- a/CHANGES
+++ b/CHANGES
@@ -9,6 +9,7 @@ bash-completion (1.x)
   * Update list of yum commands and options.
   * Add yum repolist, --enable/disablerepo, --disableexcludes, -d, and -e
     completions.
+  * Add chkconfig --override and resetpriorities completions.
 
  -- David Paleino <d.paleino at gmail.com>  Wed, 25 Mar 2009 23:18:24 +0100
 
diff --git a/bash_completion b/bash_completion
index 50b16da..63523fd 100644
--- a/bash_completion
+++ b/bash_completion
@@ -2596,10 +2596,12 @@ _chkconfig()
 	esac
 
 	if [[ "$cur" == -* ]]; then
-		COMPREPLY=( $( compgen -W '--list --add --del --level' -- $cur ) )
+		COMPREPLY=( $( compgen -W '--list --add --del --override \
+						--level' -- $cur ) )
 	else
 		if [ $COMP_CWORD -eq 2 -o $COMP_CWORD -eq 4 ]; then
-			COMPREPLY=( $( compgen -W 'on off reset' -- $cur ) )
+			COMPREPLY=( $( compgen -W 'on off reset \
+						resetpriorities' -- $cur ) )
 		else
 			_services
 		fi

-- 
bash-completion



More information about the Bash-completion-commits mailing list