[bugfix] adapt for windows 21H1

This commit is contained in:
Klesh Wong 2021-06-03 21:08:16 +08:00
parent 7ae9bdd90c
commit 4444ec5b5b
3 changed files with 8 additions and 7 deletions

View File

@ -33,10 +33,9 @@
"acrylicOpacity": 0.6,
"colorScheme": "One Half Dark",
"cursorShape": "filledBox",
// install the non-window-compatible version
// "fontFace": "agave Nerd Font r",
"fontFace": "Sarasa Mono SC",
"fontSize": 12
// https://github.com/laishulu/Sarasa-Mono-SC-Nerd/releases/latest
"fontFace": "Sarasa Mono SC Nerd",
"fontSize": 10
},
"list": [
{

View File

@ -2,6 +2,7 @@
# Set-ExecutionPolicy RemoteSigned
# new-item -ItemType SymbolicLink -Target "D:\Nextcloud\klesh\config\win\profile.ps1" -Path $profile
$env:POSH_GIT_ENABLED = $true
Set-PSReadLineOption -EditMode Emacs
Set-PSReadLineOption -PredictionSource History
@ -23,9 +24,9 @@ Set-Alias -Name v nvim
$isPs7 = $host.Version.Major -ge 7
if ( $isPs7 ) {
if ((Get-Module oh-my-posh).Version.Major -eq 3) {
Set-PoshPrompt -Theme fish
Set-PoshPrompt -Theme emodipt
} else {
Set-Prompt -Theme fish
Set-Prompt -Theme emodipt
}
}

View File

@ -1,8 +1,9 @@
# curl: https://curl.se/windows/
# ag: https://github.com/k-takata/the_silver_searcher-win32/releases
# fzf: https://github.com/junegunn/fzf/releases/latest
# $PSDefaultParameterValues = @{ "*:Proxy"="http://localhost:8123" }
$PSDefaultParameterValues = @{ "*:Proxy"="http://localhost:8123" }
#Install-Module -Name PowerShellGet -Force -AllowPrerelease
Register-PSRepository -Default -InstallationPolicy Trusted
Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted
Install-Module -Name posh-git
Install-Module -Name oh-my-posh