mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-26 07:38:39 +01:00
Merge branch 'master' of https://github.com/fleschutz/PowerShell
This commit is contained in:
commit
a0fd0c984f
16
Misc/FAQ.md
16
Misc/FAQ.md
@ -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?
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user