alias compile "g++ -Wall -g -O -Wshadow"once in a terminal window. From then on, in that window, to compile a program foo.cc write
compile foo.cc(Note: -O is dash capital O.)
(You can save yourself more typing by using !! to redo the most recent command, and !c to redo the most recent command that started with a c.)
a.out