Document how to avoid command_not_found_handler interference

master
Ville Skyttä 2015-06-23 16:40:23 +03:00
parent 6c2ae9fb18
commit 1d9e705639
1 changed files with 8 additions and 0 deletions

8
README
View File

@ -260,6 +260,14 @@ A. Probably because the database is being queried every time and this uses a
unless it detects that the database has changed since the file was created,
in which case it will still use the database to ensure accuracy.
Q. bash-completion interferes with my command_not_found_handler function!
A. If your command_not_found_handler function is not intended to address
(possibly missing) commands invoked during bash programmable completion
functions, you can take that into account in your function for example by
testing if the $COMP_* variables are set and taking appropriate bypass or
other action.
Q. Can tab completion be made even easier?
A. The readline(3) library offers a few settings that can make tab