Skip to content

Commit 1bb1bc9

Browse files
authored
Merge pull request #938 from scop/refactor/samba-scan-config
refactor: samba scan config rename, docs
2 parents 13f5487 + aa2df58 commit 1bb1bc9

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

completions/smbclient

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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'

doc/configuration.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ remote repository. Default is unset.
9292
If set and not null, `iwconfig` completion will try to complete on
9393
available 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

97102
If set and not null _before sourcing_ the `tar` completion, it will do

0 commit comments

Comments
 (0)