I already read How can I create a custom terminal command (to run a script)?
. But this always executes the same command.
What I want is, for example, instead of having to type
gcc -m32 -g -zexecstack -fno-stack-protector -mpreferred-stack-boundary=2 -no-pie -fno-pic -o program program.c
I'll just have to type a custom command like
custom-gcc program
or at least
custom-gcc -o program program.c
It would also be good if I could add options to the custom command that would also be added to gcc
.
How can I do this? Thanks