getent: Add gshadow to known databases.
This commit is contained in:
parent
fd2bd342e0
commit
0c810d1471
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user