Suffix aliases are the only reason I'm considering to switch to ZSH but I want to stick with bash. So is it possible to have something like suffix aliases in bash?
For those that doesn't know what a suffix alias is, the following in ZSH
alias -s cpp=vi
filename.cpp
will run vi with filename.cpp as first argument
Note that something like xdg-open or gnome-open is not sufficient, I want bash to execute a command when a file name is entered
edit: completion is quite important to me. Therefore if the beginning of a filename is typed then it would be nice if the rest of the filename would be completed when the TAB key is pressed.