[bugfix] adapt for windows 21H1
This commit is contained in:
parent
7ae9bdd90c
commit
4444ec5b5b
|
@ -33,10 +33,9 @@
|
||||||
"acrylicOpacity": 0.6,
|
"acrylicOpacity": 0.6,
|
||||||
"colorScheme": "One Half Dark",
|
"colorScheme": "One Half Dark",
|
||||||
"cursorShape": "filledBox",
|
"cursorShape": "filledBox",
|
||||||
// install the non-window-compatible version
|
// https://github.com/laishulu/Sarasa-Mono-SC-Nerd/releases/latest
|
||||||
// "fontFace": "agave Nerd Font r",
|
"fontFace": "Sarasa Mono SC Nerd",
|
||||||
"fontFace": "Sarasa Mono SC",
|
"fontSize": 10
|
||||||
"fontSize": 12
|
|
||||||
},
|
},
|
||||||
"list": [
|
"list": [
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
# Set-ExecutionPolicy RemoteSigned
|
# Set-ExecutionPolicy RemoteSigned
|
||||||
# new-item -ItemType SymbolicLink -Target "D:\Nextcloud\klesh\config\win\profile.ps1" -Path $profile
|
# 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 -EditMode Emacs
|
||||||
Set-PSReadLineOption -PredictionSource History
|
Set-PSReadLineOption -PredictionSource History
|
||||||
|
@ -23,9 +24,9 @@ Set-Alias -Name v nvim
|
||||||
$isPs7 = $host.Version.Major -ge 7
|
$isPs7 = $host.Version.Major -ge 7
|
||||||
if ( $isPs7 ) {
|
if ( $isPs7 ) {
|
||||||
if ((Get-Module oh-my-posh).Version.Major -eq 3) {
|
if ((Get-Module oh-my-posh).Version.Major -eq 3) {
|
||||||
Set-PoshPrompt -Theme fish
|
Set-PoshPrompt -Theme emodipt
|
||||||
} else {
|
} else {
|
||||||
Set-Prompt -Theme fish
|
Set-Prompt -Theme emodipt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
# curl: https://curl.se/windows/
|
# curl: https://curl.se/windows/
|
||||||
# ag: https://github.com/k-takata/the_silver_searcher-win32/releases
|
# ag: https://github.com/k-takata/the_silver_searcher-win32/releases
|
||||||
# fzf: https://github.com/junegunn/fzf/releases/latest
|
# fzf: https://github.com/junegunn/fzf/releases/latest
|
||||||
# $PSDefaultParameterValues = @{ "*:Proxy"="http://localhost:8123" }
|
$PSDefaultParameterValues = @{ "*:Proxy"="http://localhost:8123" }
|
||||||
#Install-Module -Name PowerShellGet -Force -AllowPrerelease
|
#Install-Module -Name PowerShellGet -Force -AllowPrerelease
|
||||||
|
Register-PSRepository -Default -InstallationPolicy Trusted
|
||||||
Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted
|
Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted
|
||||||
Install-Module -Name posh-git
|
Install-Module -Name posh-git
|
||||||
Install-Module -Name oh-my-posh
|
Install-Module -Name oh-my-posh
|
||||||
|
|
Loading…
Reference in New Issue
Block a user