Update FAQ.md

This commit is contained in:
Markus Fleschutz 2021-04-07 11:19:16 +02:00 committed by GitHub
parent 31d4d2bf2d
commit e393ceb329
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,34 +15,25 @@ Why use PowerShell?
How to get PowerShell? How to get PowerShell?
---------------------- ----------------------
* **Windows 7 and newer** do provide PowerShell by default. However, script execution is **not allowed by default** (execution policy is "restricted"). To enable this, enter as administrator: * **On Windows 7 and newer** PowerShell is provided by default. However, script execution is **not allowed by default** (execution policy is "restricted"). To enable this, enter as administrator:
``` ```
$ Set-ExecutionPolicy RemoteSigned $ Set-ExecutionPolicy RemoteSigned
``` ```
* **On CentOS, Debian, Docker, Fedora, macOS, openSUSE, Red Hat, Ubuntu** visit https://github.com/PowerShell/PowerShell for installation.
* **Want to use Snaps?** Install the PowerShell snap by executing: * **Want to use Snaps?** Install the PowerShell snap by executing:
``` ```
$ snap install PowerShell $ snap install PowerShell
$ ln -s /snap/bin/powershell /bin/powershell $ ln -s /snap/bin/powershell /bin/powershell
``` ```
* **On CentOS, Debian, Docker, Fedora, macOS, openSUSE, Red Hat, Ubuntu** visit https://github.com/PowerShell/PowerShell for installation.
How to get the PowerShell Scripts? How to get the PowerShell Scripts?
---------------------------------- ----------------------------------
Git users do execute: * Git users execute: `$ git clone https://github.com/fleschutz/PowerShell`
``` * otherwise download it from: https://github.com/fleschutz/PowerShell/archive/master.zip
$ git clone https://github.com/fleschutz/PowerShell
```
otherwise simply download it from:
https://github.com/fleschutz/PowerShell/archive/master.zip
How to Configure PowerShell as Default Shell? How to use PowerShell by Default?
--------------------------------------------- ---------------------------------
The default shell on Windows is PowerShell, on Linux it's mostly Bash.
* **On Linux:** make sure PowerShell is installed, then execute: `chsh -s /bin/powershell <username>` * **On Linux:** make sure PowerShell is installed, then execute: `chsh -s /bin/powershell <username>`
* **On Windows:** no need to, PowerShell is the default shell * **On Windows:** no need to, PowerShell is the default shell
@ -61,11 +52,11 @@ How to use PowerShell in Context Menus?
* to disable this execute `Remove_ps1_from_New_context_menu.reg` in subfolder [Misc/](Misc) * to disable this execute `Remove_ps1_from_New_context_menu.reg` in subfolder [Misc/](Misc)
How to edit PowerShell Scripts? How to edit the PowerShell Scripts?
------------------------------- -----------------------------------
* use PowerShell ISE (Integrated Scripting Environment) on Windows to write, test and debug scripts * use *PowerShell ISE* (Integrated Scripting Environment) to write, test and debug scripts (available for free on Windows only).
* use Visual Studio Code (available for free on Linux, Mac OS and Windows) - supporting syntax highlighting, on-the-fly problem checking and an integrated PowerShell Console. * use *Visual Studio Code* supporting syntax highlighting, on-the-fly problem checking and an integrated PowerShell Console (available for free on Linux, Mac OS and Windows).
* or simply use your favorite text editor * or simply use your *favorite text editor*
How to write good PowerShell Scripts? How to write good PowerShell Scripts?
------------------------------------- -------------------------------------