Adding Console2/ConsoleZ to folder context menus
If you are developing on Windows, you should definitely use Console2, or its more maintained fork ConsoleZ. With a little tweaking, it is the most competent and nicest terminal experience on Windows:
(If anyone knows how to fix those dots appearing as crossed boxes, let me know :))
The only thing that it lacks is the integration to context menus. That is exactly what the registry scripts below will do for you.
Adding
This script will add Console2 or ConsoleZ to a right click context menus of a folder, and an active folder's background:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\Console]
@="Console Here"
[HKEY_CLASSES_ROOT\Directory\shell\Console\command]
@="\"E:\\Apps\\ConsoleZ\\Console.exe\" -d \"%V\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\Console]
@="Console Here"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Console\command]
@="\"E:\\Apps\\ConsoleZ\\Console.exe\" -d \"%V\""
Don't forget to change the path to your console!
Removing
This will remove the Console from context menus, and clean up the registry.
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\shell\Console]
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Console]
Usage
After modifying console path in the installation script, save the scripts into a separate *.reg
files, and run whichever you need.
Written by Darsain
Related protips
7 Responses
Hey! Nice tut!
What font do you use? How do you get your username, machine, and current dir in the title?
Thanks!
The setup is ConsoleZ wrapping Git Bash, which is in turn reading my .bashrc (located in user directory) with settings on how should the prompt look like.
- Font: Source Code Pro Medium
- My bash prompt: http://snippi.com/s/hiycvq4
- My ConsoleZ color map: http://snippi.com/s/ctbxtmq
Thank you!
"How do you get your username, machine, and current dir in the title?"
I'm interested too! Also it looks like hastebin links doesnt exists anymore.
I've updated the comment with snippets above.
@darsain which font are you using on the console? Looks nice.
@darsain Hey! Thanks for the tut! I love how your terminal looks. Please post the full configuration folder (located at ~/AppData/Roaming/Console).
Thanks again!