Summary
In this chapter, we learned how to use the basic PowerShell Core command line to the fullest, using useful variables such as $$
and $^
, and commands such as cd -
, cd +
, ii
, h
, and r
. We also learned about PowerShell functions and pipelines.
After that, we turbocharged our editing experience with PSReadLine and created a full-featured, programmable PowerShell prompt. Luckily, there's very little we need to program ourselves—we can make use of the existing modules and configurations available from the community.
Additionally, we learned how to access coreutils from our PowerShell prompt. This gives us access to a large, popular suite of command-line tools that excel at manipulating text and solving problems.
Finally, we installed the z
utility, which allows us to navigate around the filesystem at warp speed.
Now that we can run PowerShell like a pro, let's jump into the next chapter, where we will do the same for Linux on WSL2.