Question: Is there an easy way how I can teach
zsh to check the command line before executing it? I know that I can completely wrap a specific program with an extra script, but this is not what I want to do.
Using tab completion, it could happen to me easily, that I overwrite my input file by calling
gcc wrongly e.g.
gcc test.c -o test.c
gcc test.c -o test