Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Windows Terminal Tips, Tricks, and Productivity Hacks

You're reading from   Windows Terminal Tips, Tricks, and Productivity Hacks Optimize your command-line usage and development processes with pro-level techniques

Arrow left icon
Product type Paperback
Published in Apr 2021
Publisher Packt
ISBN-13 9781800207561
Length 254 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Will Fuqua Will Fuqua
Author Profile Icon Will Fuqua
Will Fuqua
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Preface 1. Section 1: Introducing the New Windows Terminal
2. Chapter 1: Getting started with the new Windows Terminal FREE CHAPTER 3. Chapter 2: Learning the Windows Terminal UI 4. Chapter 3: Configuring an Ubuntu Linux profile 5. Section 2: Configuring your Windows Terminal and its shells
6. Chapter 4: Customizing your Windows Terminal settings 7. Chapter 5: Changing your Windows Terminal appearance 8. Chapter 6: Setting up keyboard shortcuts 9. Chapter 7: Hidden Windows Terminal Actions 10. Chapter 8: Tips for using PowerShell like a Pro 11. Chapter 9: Tips for Using Ubuntu like an Expert 12. Section 3: Using your Windows Terminal for development
13. Chapter 10: Using Git and GitHub with Windows Terminal 14. Chapter 11: Building web applications with React 15. Chapter 12: Building REST APIs with C# and Windows Terminal 16. Chapter 13: Connecting to remote systems 17. Chapter 14: Managing systems in the cloud 18. Other Books You May Enjoy Appendix Windows Terminal Actions

Using dotnet script from Windows Terminal

The first thing we'll do is install the dotnet script tool, which is a plugin for the dotnet command. This tool can run C# code in the terminal, and is useful for experimenting with C# syntax and libraries. We can download and install it using our dotnet command:

dotnet tool install -g dotnet-script

Once the download and installation is complete, we can run it by executing the dotnet script command. We can then type C# code and see the result in the terminal:

Figure 12.3 – Running C# code in Windows Terminal with dotnet script

We'll be using dotnet script later in the chapter, when we're building our REST API. To make it easier to access, we can add it to the Windows Terminal menu by modifying our settings.json (Ctrl + Shift + ,). In this file, add the following object to the profiles section, under the list field. The exact value of the guid field doesn't matter, as long as it&apos...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime