In the current directory, if we have a C++ source file, hello_world.cpp
and the corresponding compiled executable binary hello_world
, I'd like to have the autocomplete feature of bash to completely ignore (i.e. avoid presenting) the executable's filename for the vim
, vi
, nano
and nvim
(and for less
, cat
, more
, nl
, head
, tail
etc.) commands.
i.e. pressing TAB
after vim hello_wor
should just straightaway proceed to completing the c++ source filename.
How can we achieve this behaviour?
hello_world.exe
) an option, even if programatically? Then I think bash could do it..exe
is a Windows extension by convention. A platform-agnostic solution is desired.file
command would still give the same output.FIGNORE
in Bash variables, that's what I had in mind. It ignores suffixes, so you could use that to ignore an extension. But since your executable contains none, it seems impossible.