A ZSH-specific feature is suffix aliases, set by giving alias the -s flag:
alias -s ext=program If a given extension has a suffix alias, you can execute a file with that extention directly, and ZSH will launch the given program and pass the filename as an argument. So if the above alias is in effect, these lines are equivalent:
/path/to/foo.ext program /path/to/foo.ext