[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Exclude builtins from command completion

From: kaycee gb
Subject: Exclude builtins from command completion
Date: Thu, 9 Jan 2020 20:17:10 +0000


For one of my projects which works with bash completion, I'm looking for a way
to exclude bash builtin commands from the completion proposals. I already had
success with exclusion of commands from PATH.

After playing with options for complete -b/-c, compgen -b/-c, these commands are
still displayed when I type first 2 letters then <TAB><TAB>

# sh<TAB><TAB>
shift shopt show

I want that it matches just the last one. 

I even tried with actions from complete enabled/disabled builtins without luck.
I'm not sure how actions work.

My bash version is 4.2.053-x86_64-2_slack14.1. 

How can I achieve what I want to do ? 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]