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

Command Prompt customization

Command Prompt does not have nearly as many customization options available as PowerShell and ZSH, so this section will be briefer! Luckily, most of our work was done when we set up our settings.json earlier in the chapter—Command Prompt will respect those color scheme settings.

The one thing we can customize in Command Prompt is the prompt itself. We can run the prompt command to change it temporarily and set the PROMPT environment variable to change it permanently.

The prompt can use ANSI escape sequences similar to the escape sequences we covered as part of the previous PowerShell section. In addition, it has special variables for placeholders such as the date and time. Run prompt /? to see a list of all available special variables. We'll be using the following special variables:

  • $E for color escape codes
  • $T for the current time
  • $P for the current path
  • $C / $F for opening and closing parentheses, respectively
  • ...
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 €18.99/month. Cancel anytime