Do not ask for password in samba hosts and domains completions.

This commit is contained in:
Ville Skyttä 2009-05-22 16:11:51 +03:00
parent f8771782ae
commit 28c313fccd

View File

@ -12,14 +12,14 @@ _samba_resolve_order()
_samba_domains()
{
if [ -n "${COMP_SAMBA_SCAN:-}" ]; then
COMPREPLY=( $( compgen -W '$( smbtree -D )' -- $cur ) )
COMPREPLY=( $( compgen -W '$( smbtree -N -D )' -- $cur ) )
fi
}
_samba_hosts()
{
if [ -n "${COMP_SAMBA_SCAN:-}" ]; then
COMPREPLY=( $( compgen -W "$( smbtree -S )" -- $cur ) )
COMPREPLY=( $( compgen -W "$( smbtree -N -S )" -- $cur ) )
fi
}