Update FAQ.md

This commit is contained in:
Markus Fleschutz 2024-05-31 12:43:24 +02:00 committed by GitHub
parent cd38485a52
commit 8099749ae1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,6 +30,9 @@
$ ln -s /snap/bin/pwsh /usr/bin/pwsh $ ln -s /snap/bin/pwsh /usr/bin/pwsh
``` ```
2. **Otherwise, visit:** https://github.com/PowerShell/PowerShell **and scroll down to: *Get PowerShell*.** 2. **Otherwise, visit:** https://github.com/PowerShell/PowerShell **and scroll down to: *Get PowerShell*.**
3. **Configure PowerShell as your default shell?**
3.1 Check that the file **/etc/shells** contains the **/usr/bin/pwsh** line, otherwise add it.**
3.2 Now execute: **`chsh -s /usr/bin/pwsh USERNAME`** (replace USERNAME by your user name).
</details> </details>
<details><summary>How to install PowerShell on MacOS?</summary> <details><summary>How to install PowerShell on MacOS?</summary>
@ -107,12 +110,6 @@
**Use a modern one such as *Windows Terminal*, please.** **Use a modern one such as *Windows Terminal*, please.**
</details> </details>
<details><summary>How to configure PowerShell as my default shell on Linux?</summary>
1. Make sure PowerShell is installed, then **execute: `chsh -s /usr/bin/pwsh USERNAME`** (replace USERNAME by your user name).
2. In case you experience an "invalid shell" error, **add the line "/usr/bin/pwsh" to /etc/shells.**
</details>
<details><summary>How to set a custom PowerShell profile?</summary> <details><summary>How to set a custom PowerShell profile?</summary>
**Execute: `./update-powershell-profile.ps1` in the *Scripts* subfolder, this will install **my-profile.ps1** as your PowerShell profile. It's a nice looking basic profile and can easily be adapted to your needs.** **Execute: `./update-powershell-profile.ps1` in the *Scripts* subfolder, this will install **my-profile.ps1** as your PowerShell profile. It's a nice looking basic profile and can easily be adapted to your needs.**