mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-02 05:41:10 -08:00
fix(pwsh): suppress error message for chmod
This commit is contained in:
parent
57d49658ea
commit
e2a86e8bd5
|
@ -65,6 +65,16 @@ A [Powershell][powershell] module is available for easy installation.
|
|||
Install-Module oh-my-posh -Scope CurrentUser -AllowPrerelease
|
||||
```
|
||||
|
||||
If you wish to install for all users in a linux environment, you will need to install from an elevate session
|
||||
of powershell. You will also need to import the module one time from the elevated session in order to set the
|
||||
executable permissions correctly.
|
||||
|
||||
```powershell
|
||||
sudo pwsh
|
||||
Install-Module oh-my-posh -Scope AllUsers -AllowPrerelease
|
||||
Import-Module oh-my-posh
|
||||
```
|
||||
|
||||
#### Usage
|
||||
|
||||
##### Show all themes
|
||||
|
|
|
@ -35,7 +35,7 @@ function Set-ExecutablePermissions {
|
|||
return
|
||||
}
|
||||
|
||||
Invoke-Expression -Command "chmod +x $executable"
|
||||
chmod a+x $executable 2>&1
|
||||
}
|
||||
|
||||
function Set-PoshPrompt {
|
||||
|
|
Loading…
Reference in a new issue