Using Alias to make gcc compiling always include -Wall
Posted on 2009-05-15
I am taking my first true dive into Linux and Unix after using it one of my CS classes so I'm certainly new to this, as such I'm having some trouble with command.
I would like to do an alias command to make it so everytime I do a 'gcc filename' from the terminal it automatically adds the -Wall tag, giving 'gcc -Wall filename'. The biggest problem I'm having is not knowing how to use a variable inside of the alias command. I realize this is just laziness on my part but figuring out how to do this would go a long way to my understanding too =)