fix(pwsh): suppress error message for chmod

This commit is contained in:
Rob Cannon 2021-03-29 13:03:54 +00:00 committed by Jan De Dobbeleer
parent 57d49658ea
commit e2a86e8bd5
2 changed files with 11 additions and 1 deletions

View file

@ -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

View file

@ -35,7 +35,7 @@ function Set-ExecutablePermissions {
return
}
Invoke-Expression -Command "chmod +x $executable"
chmod a+x $executable 2>&1
}
function Set-PoshPrompt {