一直在用,拷來拷去麻煩,貼這裏方便本身方便你們shell
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"
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"
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"