windows下几个方便的右键菜单

一直在用,拷来拷去麻烦,贴这里方便本身方便你们shell

PSHere.reg 右键菜单打开powershell

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\PSHere]
@="PS Here"
"Icon"="powershell.exe"

[HKEY_CLASSES_ROOT\Directory\Background\shell\PSHere\command]
@="powershell.exe -NoLogo -NoExit"

PyenvHere.reg 右键打开当前目录venv (按本身命名习惯修改路径)

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\PyenvHere]
@="Pyenv Here"
"Icon"="powershell.exe"

[HKEY_CLASSES_ROOT\Directory\Background\shell\PyenvHere\command]
@="powershell.exe -NoLogo -NoExit -File .pyenv\\Scripts\\Activate.ps1"

OpenWithNotepad.reg 右键用记事本打开

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\notepad]
@="Open with Notepad"
"Icon"="notepad.exe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\notepad\command]
@="notepad %1"
相关文章
相关标签/搜索