diff --git a/contrib/munin-node b/contrib/munin-node index f9a037c5..6dee1747 100644 --- a/contrib/munin-node +++ b/contrib/munin-node @@ -27,7 +27,8 @@ _munin-run() COMPREPLY=( $( compgen -W '--config --servicedir --sconfdir \ --sconffile --help --debug --version' -- $cur ) ) else - COMPREPLY=( $( command ls /etc/munin/plugins | grep "^$cur" ) ) + COMPREPLY=( $( compgen -W '$( command ls /etc/munin/plugins )' \ + -- $cur ) ) fi } && complete -F _munin-run munin-run