[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-151-g1709686
Ville Skyttä
ville.skytta at iki.fi
Thu Apr 28 18:46:00 UTC 2011
The following commit has been merged in the master branch:
commit 0c810d1471283eb0cae1a57083c646cb81f2adb5
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Thu Apr 28 20:52:50 2011 +0300
getent: Add gshadow to known databases.
diff --git a/completions/getent b/completions/getent
index 4564acc..5b723fa 100644
--- a/completions/getent
+++ b/completions/getent
@@ -29,7 +29,7 @@ _getent()
awk '{ print $1 }' )" -- "$cur" ) )
return 0
;;
- aliases|shadow)
+ aliases|shadow|gshadow)
COMPREPLY=( $( compgen -W "$( getent "$prev" | cut -d: -f1 )" \
-- "$cur" ) )
return 0
@@ -40,7 +40,7 @@ _getent()
if [ $cword -eq 1 ]; then
COMPREPLY=( $( compgen -W 'passwd group hosts services protocols \
networks ahosts ahostsv4 ahostsv6 aliases ethers netgroup rpc \
- shadow' -- "$cur" ) )
+ shadow gshadow' -- "$cur" ) )
fi
} &&
complete -F _getent getent
--
bash-completion
More information about the Bash-completion-commits
mailing list