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"
相關文章
相關標籤/搜索