[feature] replace notepad with nvim-qt

This commit is contained in:
Klesh Wong 2020-08-04 15:32:56 +08:00
parent 0bbb2976aa
commit 412ca4bbec
2 changed files with 11 additions and 0 deletions

7
win/npd.vbs Normal file
View File

@ -0,0 +1,7 @@
Set WshShell = WScript.CreateObject("WScript.Shell")
If wscript.arguments.count <2 then
WshShell.run "nvim-qt.exe"
Else
sCmd = "nvim-qt.exe " & """" & wscript.arguments(1) & """"
WshShell.run sCmd
End If

View File

@ -25,3 +25,7 @@ if (-not (Get-ScheduledTask -TaskName "Wubi No Shift")) {
Install-Module posh-git
Install-Module oh-my-posh
# replace notepad with nvim-qt
reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /t REG_SZ /d "${dotfiles}\win\npd.vbs" /f