[feature] replace notepad with nvim-qt
This commit is contained in:
parent
0bbb2976aa
commit
412ca4bbec
7
win/npd.vbs
Normal file
7
win/npd.vbs
Normal 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
|
|
@ -25,3 +25,7 @@ if (-not (Get-ScheduledTask -TaskName "Wubi No Shift")) {
|
||||||
|
|
||||||
Install-Module posh-git
|
Install-Module posh-git
|
||||||
Install-Module oh-my-posh
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user