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

Ville Skyttä ville.skytta at iki.fi
Fri May 22 13:29:22 UTC 2009


The following commit has been merged in the master branch:
commit 28c313fccd73699c6f5a92009d31fb9e29641555
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Fri May 22 16:11:51 2009 +0300

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

diff --git a/contrib/samba b/contrib/samba
index a49f9db..ef5def3 100644
--- a/contrib/samba
+++ b/contrib/samba
@@ -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
 }
 

-- 
bash-completion



More information about the Bash-completion-commits mailing list