mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-22 01:48:20 +02:00
Update FAQ.md
This commit is contained in:
parent
c4a50bc586
commit
d15f89aa81
14
Docs/FAQ.md
14
Docs/FAQ.md
@ -60,18 +60,21 @@ NOTE: the group policy object (GPO) settings of your organization might disallow
|
|||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details><summary>Why do some scripts show gibberish characters?</summary>
|
<details><summary>Why do some scripts show gibberish characters?</summary>
|
||||||
|
|
||||||
Those PowerShell scripts are using Unicode characters. Use a modern console supporting UTF-8 such as *Windows Terminal*, please.
|
Those PowerShell scripts are using Unicode characters. Use a modern console supporting UTF-8 such as *Windows Terminal*, please.
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details><summary>How to set PowerShell as favorite shell on Linux?</summary>
|
<details><summary>How to set PowerShell as favorite shell on Linux?</summary>
|
||||||
Make sure PowerShell is installed, then execute: `chsh -s /usr/bin/pwsh <username>`. In case you experience an "invalid shell" error, add "/usr/bin/pwsh" to /etc/shells.
|
|
||||||
</details>
|
Make sure PowerShell is installed, then execute: `chsh -s /usr/bin/pwsh USERNAME`. In case you experience an "invalid shell" error, add "/usr/bin/pwsh" to /etc/shells.
|
||||||
|
</details>
|
||||||
|
|
||||||
<details><summary>How to install a custom PowerShell profile?</summary>
|
<details><summary>How to install a custom PowerShell profile?</summary>
|
||||||
|
|
||||||
Execute: `./set-profile.ps1` in the *Scripts* subfolder, this will install **my-profile.ps1** as your PowerShell profile. It's a nice looking base profile, but can easily be changed to your needs.
|
Execute: `./set-profile.ps1` in the *Scripts* subfolder, this will install **my-profile.ps1** as your PowerShell profile. It's a nice looking base profile, but can easily be changed to your needs.
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details><summary>How to add the scripts to the search path?</summary>
|
<details><summary>How to add the scripts to the search path?</summary>
|
||||||
|
|
||||||
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:
|
||||||
|
|
||||||
@ -112,7 +115,8 @@ Good PowerShell scripts are both user-friendly and platform-independent. I recom
|
|||||||
9. On success exit with error code 0 (`exit 0`), otherwise print the error with keyword "ERROR:" (to support log parsers) and exit the error code (mostly 1)
|
9. On success exit with error code 0 (`exit 0`), otherwise print the error with keyword "ERROR:" (to support log parsers) and exit the error code (mostly 1)
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details><summary>Where's the Star History?</summary>>
|
<details><summary>Where's the Star History?</summary>
|
||||||
|
|
||||||
[](https://star-history.com/#fleschutz/PowerShell&Date)
|
[](https://star-history.com/#fleschutz/PowerShell&Date)
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user