diff --git a/init.sh b/init.sh index fbb66be..dec7fed 100644 --- a/init.sh +++ b/init.sh @@ -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 diff --git a/powershell_profile.ps1 b/powershell_profile.ps1 index 3afc1c5..491a398 100644 --- a/powershell_profile.ps1 +++ b/powershell_profile.ps1 @@ -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 diff --git a/setup.ps1 b/setup.ps1 index d6f4219..de3ca74 100644 --- a/setup.ps1 +++ b/setup.ps1 @@ -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 \ No newline at end of file +Copy-Item posh_config.json ~/.config/ohmyposh/config.json \ No newline at end of file