corrections

This commit is contained in:
Laurent Le Houerou 2021-09-01 22:09:48 +04:00
parent 7378118bff
commit 4ad997bf56
3 changed files with 3 additions and 3 deletions

View File

@ -14,5 +14,6 @@ chsh -s /usr/bin/pwsh
sudo wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh sudo wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh
sudo chmod +x /usr/local/bin/oh-my-posh sudo chmod +x /usr/local/bin/oh-my-posh
pwsh -s setup.ps1
pwsh pwsh

View File

@ -1,6 +1,6 @@
oh-my-posh --init --shell pwsh --config ~/.config/ohmyposh/config.json | Invoke-Expression oh-my-posh --init --shell pwsh --config ~/.config/ohmyposh/config.json | Invoke-Expression
Import-Module Terminal-Icons Import-Module Terminal-Icons
Import-Module PSReadLine -Force Import-Module PSReadLine
Set-PSReadLineOption -PredictionSource History Set-PSReadLineOption -PredictionSource History
Set-PSReadLineOption -PredictionViewStyle ListView Set-PSReadLineOption -PredictionViewStyle ListView
Set-PSReadLineOption -EditMode Windows Set-PSReadLineOption -EditMode Windows

View File

@ -7,4 +7,3 @@ mkdir -p (Split-Path -Path $PROFILE)
Copy-Item powershell_profile.ps1 $PROFILE Copy-Item powershell_profile.ps1 $PROFILE
mkdir -p ~/.config/ohmyposh mkdir -p ~/.config/ohmyposh
Copy-Item posh_config.json ~/.config/ohmyposh/config.json Copy-Item posh_config.json ~/.config/ohmyposh/config.json
. $PROFILE