[feature] editor settings for Powershell

This commit is contained in:
Klesh Wong 2020-08-04 14:42:43 +08:00
parent 4d17db0bd6
commit 0bbb2976aa
2 changed files with 4 additions and 0 deletions

2
config/nvim/ginit.vim Normal file
View File

@ -0,0 +1,2 @@
Guifont 等距更纱黑体 T SC:h12
source $VIMRUNTIME/mswin.vim

View File

@ -5,6 +5,8 @@
Set-PSReadLineOption -EditMode Emacs Set-PSReadLineOption -EditMode Emacs
$Env:Path += ";$PSScriptRoot\bin" $Env:Path += ";$PSScriptRoot\bin"
$Env:KUBE_EDITOR = 'nvim'
$Env:EDITOR = 'nvim'
Set-Alias -Name k kubectl Set-Alias -Name k kubectl
$isPs7 = $host.Version.Major -ge 7 $isPs7 = $host.Version.Major -ge 7
if ( $isPs7 ) { if ( $isPs7 ) {