I'd like to use suffix aliases for automatically opening .py
files in vim. For that, I've got alias -s py=vim
in my zshrc.
However, I do have some python files that are executables in my path, for which I'd like to disable suffix completion. I could simply call the file directly with python /path/to/executable.py
, but entering the path every single time is cumbersome (and counter the notion of PATH
anyway).
Is there a way to exempt certain files, preferably simply those that do not reside in the current working directory from suffix aliasing? If not, does someone have pointers how to go about implementing such a functionality?