This commit is contained in:
Markus Fleschutz 2021-03-29 12:21:41 +02:00
commit a0fd0c984f

View File

@ -39,16 +39,18 @@ https://github.com/fleschutz/PowerShell/archive/master.zip
How to Configure PowerShell as Default Shell? How to Configure PowerShell as Default Shell?
--------------------------------------------- ---------------------------------------------
* **Linux:** make sure PowerShell is installed, then execute: `chsh -s /bin/powershell <username>` The default shell on Windows is PowerShell, on Linux it's mostly Bash.
* **Windows:** no need to, PowerShell is the default shell
* **On Linux:** make sure PowerShell is installed, then execute: `chsh -s /bin/powershell <username>`
* **On Windows:** no need to, PowerShell is the default shell
How to add the Scripts to the Search Path? How to add the Scripts to the Search Path?
------------------------------------------ ------------------------------------------
Want to use the PowerShell scripts everywhere on the command-line? Then you need to add the Scripts/ subfolder to the search path: Want to use the PowerShell scripts everywhere on the command-line? Then you need to add the Scripts/ subfolder to the search path:
* **Bash or sh:** edit .profile in your home directory and add the line: PATH="$PATH:/path/to/PowerShell/Scripts" * **On Linux using Bash:** edit .profile in your home directory and add the line: PATH="$PATH:/path/to/PowerShell/Scripts"
* **Windows:** open the environment variables dialogue and add the full path to Scripts/ to the system environment variable "Path" * **On Windows:** open the environment variables dialogue and add the full path to Scripts/ to the system environment variable "Path"
How to use PowerShell in Context Menus? How to use PowerShell in Context Menus?
@ -59,9 +61,9 @@ How to use PowerShell in Context Menus?
How to edit PowerShell Scripts? How to edit PowerShell Scripts?
------------------------------- -------------------------------
* use your favorite text editor * use PowerShell ISE (Integrated Scripting Environment) on Windows to write, test and debug scripts
* use Visual Studio Code (available for free) - providing syntax highlighting, on-the-fly problem checking and an integrated PowerShell Console. * 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.
* or simply use your favorite text editor
How to write good PowerShell Scripts? How to write good PowerShell Scripts?
------------------------------------- -------------------------------------