diff --git a/completions/add_members b/completions/add_members index d9e67d27fa3..d691884ca22 100644 --- a/completions/add_members +++ b/completions/add_members @@ -22,6 +22,9 @@ _comp_cmd_add_members() _comp_compgen -- -W '--regular-members-file --digest-members-file --welcome-msg --admin-notify --help' else + # Prefer `list_lists` in the same dir as command + local pathcmd + pathcmd=$(type -P "$1") && local PATH=${pathcmd%/*}:$PATH _comp_xfunc list_lists mailman_lists fi diff --git a/completions/arch b/completions/arch index b49d8e63273..fed1882acb3 100644 --- a/completions/arch +++ b/completions/arch @@ -32,6 +32,9 @@ _comp_have_command mailmanctl && done case $args in 1) + # Prefer `list_lists` in the same dir as command + local pathcmd + pathcmd=$(type -P "$1") && local PATH=${pathcmd%/*}:$PATH _comp_xfunc list_lists mailman_lists ;; 2) diff --git a/completions/change_pw b/completions/change_pw index e994160417b..8ce28c25ba6 100644 --- a/completions/change_pw +++ b/completions/change_pw @@ -7,6 +7,9 @@ _comp_cmd_change_pw() case $prev in -l | --listname) + # Prefer `list_lists` in the same dir as command + local pathcmd + pathcmd=$(type -P "$1") && local PATH=${pathcmd%/*}:$PATH _comp_xfunc list_lists mailman_lists return ;; diff --git a/completions/check_db b/completions/check_db index 745f34222b3..2beb14538c1 100644 --- a/completions/check_db +++ b/completions/check_db @@ -8,6 +8,9 @@ _comp_cmd_check_db() if [[ $cur == -* ]]; then _comp_compgen -- -W '--all --verbose --help' else + # Prefer `list_lists` in the same dir as command + local pathcmd + pathcmd=$(type -P "$1") && local PATH=${pathcmd%/*}:$PATH _comp_xfunc list_lists mailman_lists fi diff --git a/completions/clone_member b/completions/clone_member index 60e8d15e702..63df3705de4 100644 --- a/completions/clone_member +++ b/completions/clone_member @@ -7,6 +7,9 @@ _comp_cmd_clone_member() case $prev in -l | --listname) + # Prefer `list_lists` in the same dir as command + local pathcmd + pathcmd=$(type -P "$1") && local PATH=${pathcmd%/*}:$PATH _comp_xfunc list_lists mailman_lists return ;; diff --git a/completions/config_list b/completions/config_list index 9cb358aa6ae..6e35a16aeaf 100644 --- a/completions/config_list +++ b/completions/config_list @@ -18,6 +18,9 @@ _comp_cmd_config_list() COMPREPLY=($(compgen -W '--inputfile --outputfile --checkonly --verbose --help' -- "$cur")) else + # Prefer `list_lists` in the same dir as command + local pathcmd + pathcmd=$(type -P "$1") && local PATH=${pathcmd%/*}:$PATH _comp_xfunc list_lists mailman_lists fi diff --git a/completions/find_member b/completions/find_member index a551eccc5f9..97cde25509e 100644 --- a/completions/find_member +++ b/completions/find_member @@ -7,6 +7,9 @@ _comp_cmd_find_member() case $prev in -l | -x | --listname | --exclude) + # Prefer `list_lists` in the same dir as command + local pathcmd + pathcmd=$(type -P "$1") && local PATH=${pathcmd%/*}:$PATH _comp_xfunc list_lists mailman_lists return ;; diff --git a/completions/inject b/completions/inject index 70e3acd023e..b3aac773669 100644 --- a/completions/inject +++ b/completions/inject @@ -7,6 +7,9 @@ _comp_cmd_inject() case $prev in -l | --listname) + # Prefer `list_lists` in the same dir as command + local pathcmd + pathcmd=$(type -P "$1") && local PATH=${pathcmd%/*}:$PATH _comp_xfunc list_lists mailman_lists return ;; diff --git a/completions/list_admins b/completions/list_admins index af0d0f204f2..1ae38a3cbf0 100644 --- a/completions/list_admins +++ b/completions/list_admins @@ -8,6 +8,9 @@ _comp_cmd_list_admins() if [[ $cur == -* ]]; then _comp_compgen -- -W '--all-vhost --all --help' else + # Prefer `list_lists` in the same dir as command + local pathcmd + pathcmd=$(type -P "$1") && local PATH=${pathcmd%/*}:$PATH _comp_xfunc list_lists mailman_lists fi diff --git a/completions/list_members b/completions/list_members index 8c8f36f65dc..0a14d1863ed 100644 --- a/completions/list_members +++ b/completions/list_members @@ -26,6 +26,9 @@ _comp_cmd_list_members() COMPREPLY=($(compgen -W '--output --regular --digest --nomail --fullnames --preserve --help' -- "$cur")) else + # Prefer `list_lists` in the same dir as command + local pathcmd + pathcmd=$(type -P "$1") && local PATH=${pathcmd%/*}:$PATH _comp_xfunc list_lists mailman_lists fi diff --git a/completions/list_owners b/completions/list_owners index 028fb363eae..fe942a2dad6 100644 --- a/completions/list_owners +++ b/completions/list_owners @@ -8,6 +8,9 @@ _comp_cmd_list_owners() if [[ $cur == -* ]]; then _comp_compgen -- -W '--with-listnames --moderators --help' else + # Prefer `list_lists` in the same dir as command + local pathcmd + pathcmd=$(type -P "$1") && local PATH=${pathcmd%/*}:$PATH _comp_xfunc list_lists mailman_lists fi diff --git a/completions/newlist b/completions/newlist index fa73855acf5..9ab45dc92c3 100644 --- a/completions/newlist +++ b/completions/newlist @@ -17,6 +17,9 @@ _comp_cmd_newlist() _comp_compgen_help [[ ${COMPREPLY-} == *= ]] && compopt -o nospace else + # Prefer `list_lists` in the same dir as command + local pathcmd + pathcmd=$(type -P "$1") && local PATH=${pathcmd%/*}:$PATH _comp_xfunc list_lists mailman_lists fi } && diff --git a/completions/remove_members b/completions/remove_members index c4b22f4e2b4..57dbf43d4e0 100644 --- a/completions/remove_members +++ b/completions/remove_members @@ -18,6 +18,9 @@ _comp_cmd_remove_members() _comp_compgen -- -W '--file --all --fromall --nouserack --noadminack --help' else + # Prefer `list_lists` in the same dir as command + local pathcmd + pathcmd=$(type -P "$1") && local PATH=${pathcmd%/*}:$PATH _comp_xfunc list_lists mailman_lists fi diff --git a/completions/rmlist b/completions/rmlist index 6c1ed4fb00d..a661e7fc269 100644 --- a/completions/rmlist +++ b/completions/rmlist @@ -8,6 +8,9 @@ _comp_cmd_rmlist() if [[ $cur == -* ]]; then _comp_compgen -- -W '--archives --help' else + # Prefer `list_lists` in the same dir as command + local pathcmd + pathcmd=$(type -P "$1") && local PATH=${pathcmd%/*}:$PATH _comp_xfunc list_lists mailman_lists fi diff --git a/completions/sync_members b/completions/sync_members index 478a30d07c9..ccfd2303bfa 100644 --- a/completions/sync_members +++ b/completions/sync_members @@ -22,6 +22,9 @@ _comp_cmd_sync_members() _comp_compgen -- -W '--no-change --welcome-msg --goodbye-msg --digest --notifyadmin --file --help' else + # Prefer `list_lists` in the same dir as command + local pathcmd + pathcmd=$(type -P "$1") && local PATH=${pathcmd%/*}:$PATH _comp_xfunc list_lists mailman_lists fi diff --git a/completions/withlist b/completions/withlist index 0f792a0b6c6..1447db8eeb9 100644 --- a/completions/withlist +++ b/completions/withlist @@ -8,6 +8,9 @@ _comp_cmd_withlist() if [[ $cur == -* ]]; then _comp_compgen -- -W '--lock --interactive --run --all --quiet --help' else + # Prefer `list_lists` in the same dir as command + local pathcmd + pathcmd=$(type -P "$1") && local PATH=${pathcmd%/*}:$PATH _comp_xfunc list_lists mailman_lists fi