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 chmod +x /usr/local/bin/oh-my-posh
pwsh -s setup.ps1
pwsh

View File

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

View File

@ -6,5 +6,4 @@ Install-Module PSReadLine -AllowPrerelease -Force -RequiredVersion 2.2.0-beta1
mkdir -p (Split-Path -Path $PROFILE)
Copy-Item powershell_profile.ps1 $PROFILE
mkdir -p ~/.config/ohmyposh
Copy-Item posh_config.json ~/.config/ohmyposh/config.json
. $PROFILE
Copy-Item posh_config.json ~/.config/ohmyposh/config.json