In my .bash_aliases file I have couple of aliases, like --shopt -s expand_aliasesalias emx='emacs'alias em='emacs -nw'alias gv='gvim'alias v='vi'alias ev='evince'when I use them and press [tab] for auto completion, they work --:~/$ emx main-0 [press tab]main-04.cpp       main-05.cpp       main-06.cpp       main-06-test.cpp or:~/$ em main-0 [press tab]main-04.cpp       main-05.cpp       main-06.cpp       main-06-test.cpp both for emx and em they work (also ev works), but when I try to use gv or v, it does not --:~/$ gv main-0 [press tab]<nothing happens>why ??
why completion does not work for all aliases?
bash;autocomplete;alias
In case it's a point of confusion, expand_aliases determines if aliases are checked when processing commands, it's a different thing altogether to completion.It sounds like you have per-command completion set up, check the output of complete (no arguments). gv is conventionally the ghostview command, so it's possible that gv completion is only searching for PS/EPS/PDF files.