
上QQ阅读APP看书,第一时间看更新
Bonus– using the Install-PowerShell script (including on macOS)
The official PowerShell repository has a script that detects your operating system and installs PowerShell based on the operating system and the distribution.
Your computer must have the following:
- The Bash shell
- sed
- A native package manager
We need the Visual Studio Code IDE so that we can follow the exercises in this book. Run the following command to commence the installation:
$ bash <(wget -O - https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/install-powershell.sh) -includeide
If you do not have a desktop environment on your computer, you will not be able to install Visual Studio Code. Either install a desktop environment or omit the -includeide switch.
For more information, go through the README file at https://github.com/PowerShell/PowerShell/blob/master/tools/install-powershell-readme.md.