Z shell tab completion: Is it possible to define a new "pre-command"?
I am trying to write a zstyle ":completion:*" or similar rule that completes command names upon tab completion, similar to the pre-defined rules for commands like nice, nohup, exec, or sudo.
The commands in this case are those for MPI programs; for example, let's say that Code:
mpiexec -n 4 my_[TAB] Code:
mpiexec -n 4 my_program I tried Code:
compdef "_precommand" mpiexec I'm hoping it's something like, Code:
zstyle ":completion:*:mpiexec:argument-3:" commands |
All times are GMT -5. The time now is 12:56 PM. |