Welcome to the Treehouse Community
Looking to learn something new?
Darya Zata2,562 Points
Avoid tipping all compile comand
i really need some shortcut of tipping the following line EVERYTIME into a compiler: mcs -out:TreehouseDefense.exe *.cs && mono TreehouseDefense.exe
there is not copy paste option and in the video it looks like its shortut used , but i dont know how , and this is VERY time robbing tipping this line every each time.
Steven Parker215,939 Points
You can create a shortcut using the "alias" command. For example:
alias run='mcs -out:TreehouseDefense.exe *.cs && mono TreehouseDefense.exe'
Then you would only need to give the commnd "run" to make all that happen.
Seth Kroger56,403 Points
The console has a command history. You can use up-arrow to scroll through your previous commands.