Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save flyxyz123/53ac952fe94a14482565f1d96e5704d5 to your computer and use it in GitHub Desktop.
Save flyxyz123/53ac952fe94a14482565f1d96e5704d5 to your computer and use it in GitHub Desktop.
Add Alacritty terminal emulator to Windows 10 context menu
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\alacritty]
@="Open Alacritty here"
"Icon"="D:\\Program Files\\Scoop\\apps\\alacritty\\current\\alacritty.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\alacritty\command]
@="\"D:\\Program Files\\Scoop\\apps\\alacritty\\current\\alacritty.exe\" --working-directory \"%V"
[HKEY_CLASSES_ROOT\Drive\shell\alacritty]
@="Open Alacritty here"
"Icon"="D:\\Program Files\\Scoop\\apps\\alacritty\\current\\alacritty.exe"
[HKEY_CLASSES_ROOT\Drive\shell\alacritty\command]
@="\"D:\\Program Files\\Scoop\\apps\\alacritty\\current\\alacritty.exe\" --working-directory \"%V"
[HKEY_CLASSES_ROOT\Directory\shell\alacritty]
@="Open Alacritty here"
"Icon"="D:\\Program Files\\Scoop\\apps\\alacritty\\current\\alacritty.exe"
[HKEY_CLASSES_ROOT\Directory\shell\alacritty\command]
@="\"D:\\Program Files\\Scoop\\apps\\alacritty\\current\\alacritty.exe\" --working-directory \"%V"
@flyxyz123
Copy link
Author

flyxyz123 commented Mar 9, 2021

A version of add_alacritty_to_context_menu.reg that solves the problem of can't open it in the root directory, when right-clicking at the background of file explorer. I don't understand why "%V solves the problem but it works. For more details please see alacritty/alacritty#4882.

HKEY_CLASSES_ROOT\Directory\Background\shell\ for right-click at the background of the file explorer
HKEY_CLASSES_ROOT\Drive\shell\ for right-click at he drive (C,D,E,F,etc.) inside file explorer
HKEY_CLASSES_ROOT\Directory\shell\ for right-click at directories (C:\Program Files, C:\ProgramFiles) inside file explorer

@vitran96
Copy link

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment