File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ _comp_cmd_smbclient__resolve_order()
7
7
8
8
_comp_cmd_smbclient__domains ()
9
9
{
10
- if [[ ${COMP_SAMBA_SCAN-} ]]; then
10
+ if [[ ${BASH_COMPLETION_CMD_SMBTREE_SCAN- ${ COMP_SAMBA_SCAN-} } ]]; then
11
11
COMPREPLY=($( compgen -W ' $(smbtree -N -D)' -- " $cur " ) )
12
12
fi
13
13
}
14
14
15
15
_comp_cmd_smbclient__hosts ()
16
16
{
17
- if [[ ${COMP_SAMBA_SCAN-} ]]; then
17
+ if [[ ${BASH_COMPLETION_CMD_SMBTREE_SCAN- ${ COMP_SAMBA_SCAN-} } ]]; then
18
18
COMPREPLY=($( compgen -W " $(
19
19
smbtree -N -S |
20
20
command sed -ne ' s/^[[:space:]]*\\\\*\([^[:space:]]*\).*/\1/p'
Original file line number Diff line number Diff line change @@ -92,6 +92,11 @@ remote repository. Default is unset.
92
92
If set and not null, ` iwconfig ` completion will try to complete on
93
93
available wireless networks identifiers. Default is unset.
94
94
95
+ ### ` BASH_COMPLETION_CMD_SMBTREE_SCAN `
96
+
97
+ If set and not null, various samba related tool completions perform
98
+ a network scan to complete domains and hosts. Default is unset.
99
+
95
100
### ` BASH_COMPLETION_CMD_TAR_INTERNAL_PATHS `
96
101
97
102
If set and not null _ before sourcing_ the ` tar ` completion, it will do
You can’t perform that action at this time.
0 commit comments