From 9ec7c2acd54b75a60e62199d7e103244c794ef90 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Sun, 6 Jun 2021 11:42:40 +0800 Subject: [PATCH] [bugfix] posh-git file status too slow --- win/profile.ps1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/win/profile.ps1 b/win/profile.ps1 index c10d9da..16fb5c7 100644 --- a/win/profile.ps1 +++ b/win/profile.ps1 @@ -2,7 +2,7 @@ # Set-ExecutionPolicy RemoteSigned # new-item -ItemType SymbolicLink -Target "D:\Nextcloud\klesh\config\win\profile.ps1" -Path $profile -$env:POSH_GIT_ENABLED = $true +#$env:POSH_GIT_ENABLED = $true Set-PSReadLineOption -EditMode Emacs Set-PSReadLineOption -PredictionSource History @@ -23,10 +23,11 @@ Set-Alias -Name bm Open-Bookmark Set-Alias -Name v nvim $isPs7 = $host.Version.Major -ge 7 if ( $isPs7 ) { + $GitPromptSettings.EnableFileStatus = $false if ((Get-Module oh-my-posh).Version.Major -eq 3) { - Set-PoshPrompt -Theme emodipt + Set-PoshPrompt -Theme fish } else { - Set-Prompt -Theme emodipt + Set-Prompt -Theme fish } }