一直在用,拷来拷去麻烦,贴这里方便自己方便大家
PSHere.reg 右键菜单打开powershell
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTDirectoryBackgroundshellPSHere]
@="PS Here"
"Icon"="powershell.exe"
[HKEY_CLASSES_ROOTDirectoryBackgroundshellPSHerecommand]
@="powershell.exe -NoLogo -NoExit"
PyenvHere.reg 右键打开当前目录venv (按自己命名习惯修改路径)
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTDirectoryBackgroundshellPyenvHere]
@="Pyenv Here"
"Icon"="powershell.exe"
[HKEY_CLASSES_ROOTDirectoryBackgroundshellPyenvHerecommand]
@="powershell.exe -NoLogo -NoExit -File .pyenv\Scripts\Activate.ps1"
OpenWithNotepad.reg 右键用记事本打开
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINESOFTWAREClasses*shell
otepad]
@="Open with Notepad"
"Icon"="notepad.exe"
[HKEY_LOCAL_MACHINESOFTWAREClasses*shell
otepadcommand]
@="notepad %1"