In the previous recipe, we took a look at the existing variables. In this recipe, we will change the value of one of the variables to control the behavior of PowerShell. Again, remember that the change in the value is ephemeral; the values would be reset once the PowerShell process is restarted.
Changing shell behavior using variables
Getting ready
Read the previous recipe to understand the automatic variables that come predefined. Also, start Visual Studio Code. Perform the following steps to start Visual Studio Code:
- Open applications (I use the GNOME desktop environment, which shows all applications with Super + A).
- Type in code.
- Press Ctrl + ` to launch the Terminal.
- Click on New File on the welcome screen (or press Ctrl...