mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-22 09:58:19 +02:00
Update README.md
This commit is contained in:
parent
4bae3370a4
commit
271c90e2c6
11
README.md
11
README.md
@ -20,6 +20,7 @@ Scripts Explained
|
|||||||
Frequently Asked Questions (FAQ)
|
Frequently Asked Questions (FAQ)
|
||||||
--------------------------------
|
--------------------------------
|
||||||
**What is PowerShell?**
|
**What is PowerShell?**
|
||||||
|
|
||||||
PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language.
|
PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language.
|
||||||
* PowerShell is cross-platform: available for Windows, Linux and Mac OS
|
* PowerShell is cross-platform: available for Windows, Linux and Mac OS
|
||||||
* PowerShell is powerful: fully control your computer
|
* PowerShell is powerful: fully control your computer
|
||||||
@ -28,23 +29,25 @@ PowerShell is a task automation and configuration management framework from Micr
|
|||||||
* PowerShell is fully documented: see the official docs at https://docs.microsoft.com/en-us/powershell/
|
* PowerShell is fully documented: see the official docs at https://docs.microsoft.com/en-us/powershell/
|
||||||
|
|
||||||
**How to configure PowerShell as default shell on Linux?**
|
**How to configure PowerShell as default shell on Linux?**
|
||||||
|
|
||||||
Make sure PowerShell is installed, then use the `chsh` as follows:
|
Make sure PowerShell is installed, then use the `chsh` as follows:
|
||||||
`chsh -s /bin/powershell username`
|
* `chsh -s /bin/powershell username`
|
||||||
|
|
||||||
**How to add the subfolder Scripts/ to the search path for command-line usage?**
|
**How to add the subfolder Scripts/ to the search path for command-line usage?**
|
||||||
|
|
||||||
* **Windows:** open the environment variables dialogue and add the full path to Scripts/ to the system environment variable "Path"
|
* **Windows:** open the environment variables dialogue and add the full path to Scripts/ to the system environment variable "Path"
|
||||||
* **Bash or sh:** edit .profile in your home directory and add the line: PATH="$PATH:/path/to/PowerShell/Scripts"
|
* **Bash or sh:** edit .profile in your home directory and add the line: PATH="$PATH:/path/to/PowerShell/Scripts"
|
||||||
|
|
||||||
Script Standards
|
Script Standards
|
||||||
----------------
|
----------------
|
||||||
Each script provides:
|
Each script provides:
|
||||||
1. a comment header containing a description, author, source, and license
|
1. a comment header containing the description, author, source, and license
|
||||||
2. prefers command-line options but may ask the user if missing
|
2. prefers command-line options but may ask the user in case no option is given
|
||||||
3. exits 0 for success, otherwise the error code (mostly 1)
|
3. exits 0 for success, otherwise the error code (mostly 1)
|
||||||
|
|
||||||
Feedback
|
Feedback
|
||||||
--------
|
--------
|
||||||
Send your email feedback to markus [at] fleschutz [dot] de.
|
Send your email feedback to: markus [at] fleschutz [dot] de
|
||||||
|
|
||||||
License & Copyright
|
License & Copyright
|
||||||
-------------------
|
-------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user