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()
77
88_comp_cmd_smbclient__domains ()
99{
10- if [[ ${COMP_SAMBA_SCAN-} ]]; then
10+ if [[ ${BASH_COMPLETION_CMD_SMBTREE_SCAN- ${ COMP_SAMBA_SCAN-} } ]]; then
1111 COMPREPLY=($( compgen -W ' $(smbtree -N -D)' -- " $cur " ) )
1212 fi
1313}
1414
1515_comp_cmd_smbclient__hosts ()
1616{
17- if [[ ${COMP_SAMBA_SCAN-} ]]; then
17+ if [[ ${BASH_COMPLETION_CMD_SMBTREE_SCAN- ${ COMP_SAMBA_SCAN-} } ]]; then
1818 COMPREPLY=($( compgen -W " $(
1919 smbtree -N -S |
2020 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.
9292If set and not null, ` iwconfig ` completion will try to complete on
9393available wireless networks identifiers. Default is unset.
9494
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+
95100### ` BASH_COMPLETION_CMD_TAR_INTERNAL_PATHS `
96101
97102If set and not null _ before sourcing_ the ` tar ` completion, it will do
You can’t perform that action at this time.
0 commit comments