diff --git a/bash_completion b/bash_completion index 218dbd52405b790f94be5dcb0b814dfcbbfc646e..3295f0bd026773749575cae8e807092e5889ef1b 100644 --- a/bash_completion +++ b/bash_completion @@ -2,7 +2,7 @@ _altree_option_list() { - altree --help 2> /dev/null | \ + "${COMP_WORDS[0]}" --help 2> /dev/null | \ sed -e '0,/^Options/d;/^ --/{s/^ //;s/^--\(man\|help\).*/--\1/;p};d' }