File tree Expand file tree Collapse file tree 16 files changed +48
-0
lines changed Expand file tree Collapse file tree 16 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ _comp_cmd_add_members()
22
22
_comp_compgen -- -W ' --regular-members-file --digest-members-file
23
23
--welcome-msg --admin-notify --help'
24
24
else
25
+ # Prefer `list_lists` in the same dir as command
26
+ local pathcmd
27
+ pathcmd=$( type -P " $1 " ) && local PATH=${pathcmd%/* } :$PATH
25
28
_comp_xfunc list_lists mailman_lists
26
29
fi
27
30
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ _comp_have_command mailmanctl &&
32
32
done
33
33
case $args in
34
34
1)
35
+ # Prefer `list_lists` in the same dir as command
36
+ local pathcmd
37
+ pathcmd=$( type -P " $1 " ) && local PATH=${pathcmd%/* } :$PATH
35
38
_comp_xfunc list_lists mailman_lists
36
39
;;
37
40
2)
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ _comp_cmd_change_pw()
7
7
8
8
case $prev in
9
9
-l | --listname)
10
+ # Prefer `list_lists` in the same dir as command
11
+ local pathcmd
12
+ pathcmd=$( type -P " $1 " ) && local PATH=${pathcmd%/* } :$PATH
10
13
_comp_xfunc list_lists mailman_lists
11
14
return
12
15
;;
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ _comp_cmd_check_db()
8
8
if [[ $cur == -* ]]; then
9
9
_comp_compgen -- -W ' --all --verbose --help'
10
10
else
11
+ # Prefer `list_lists` in the same dir as command
12
+ local pathcmd
13
+ pathcmd=$( type -P " $1 " ) && local PATH=${pathcmd%/* } :$PATH
11
14
_comp_xfunc list_lists mailman_lists
12
15
fi
13
16
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ _comp_cmd_clone_member()
7
7
8
8
case $prev in
9
9
-l | --listname)
10
+ # Prefer `list_lists` in the same dir as command
11
+ local pathcmd
12
+ pathcmd=$( type -P " $1 " ) && local PATH=${pathcmd%/* } :$PATH
10
13
_comp_xfunc list_lists mailman_lists
11
14
return
12
15
;;
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ _comp_cmd_config_list()
18
18
COMPREPLY=($( compgen -W ' --inputfile --outputfile --checkonly
19
19
--verbose --help' -- " $cur " ) )
20
20
else
21
+ # Prefer `list_lists` in the same dir as command
22
+ local pathcmd
23
+ pathcmd=$( type -P " $1 " ) && local PATH=${pathcmd%/* } :$PATH
21
24
_comp_xfunc list_lists mailman_lists
22
25
fi
23
26
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ _comp_cmd_find_member()
7
7
8
8
case $prev in
9
9
-l | -x | --listname | --exclude)
10
+ # Prefer `list_lists` in the same dir as command
11
+ local pathcmd
12
+ pathcmd=$( type -P " $1 " ) && local PATH=${pathcmd%/* } :$PATH
10
13
_comp_xfunc list_lists mailman_lists
11
14
return
12
15
;;
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ _comp_cmd_inject()
7
7
8
8
case $prev in
9
9
-l | --listname)
10
+ # Prefer `list_lists` in the same dir as command
11
+ local pathcmd
12
+ pathcmd=$( type -P " $1 " ) && local PATH=${pathcmd%/* } :$PATH
10
13
_comp_xfunc list_lists mailman_lists
11
14
return
12
15
;;
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ _comp_cmd_list_admins()
8
8
if [[ $cur == -* ]]; then
9
9
_comp_compgen -- -W ' --all-vhost --all --help'
10
10
else
11
+ # Prefer `list_lists` in the same dir as command
12
+ local pathcmd
13
+ pathcmd=$( type -P " $1 " ) && local PATH=${pathcmd%/* } :$PATH
11
14
_comp_xfunc list_lists mailman_lists
12
15
fi
13
16
Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ _comp_cmd_list_members()
26
26
COMPREPLY=($( compgen -W ' --output --regular --digest --nomail
27
27
--fullnames --preserve --help' -- " $cur " ) )
28
28
else
29
+ # Prefer `list_lists` in the same dir as command
30
+ local pathcmd
31
+ pathcmd=$( type -P " $1 " ) && local PATH=${pathcmd%/* } :$PATH
29
32
_comp_xfunc list_lists mailman_lists
30
33
fi
31
34
You can’t perform that action at this time.
0 commit comments