Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

C# C# Objects Inheritance Inheritance in Code

Darya Zata
Darya Zata
2,562 Points

Avoid tipping all compile comand

Hello all,

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.

PLS hepl

2 Answers

Steven Parker
Steven Parker
215,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 Kroger
Seth Kroger
56,403 Points

The console has a command history. You can use up-arrow to scroll through your previous commands.