Jump to content
IPS Community Suite 简体中文
Sign in to follow this  
ipscn

Cmder 添加到右键

Recommended Posts

Cmder 是 Windows 平台上的一个 cmd 的良好替代品。

 

添加到右键菜单

建议在 Cmder 所在目录,创建一个文件 ContextCmder-Add.reg

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
@="在这儿cmder一下?"
"Icon"="D:\\tools\\cmder\\Cmder.exe,0"

[HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder\command]
@="\"D:\\tools\\cmder\\Cmder.exe\" \"%V\""

[HKEY_CLASSES_ROOT\Directory\shell\Cmder]
@="在这儿cmder一下?"
"Icon"="D:\\tools\\cmder\\Cmder.exe,0"

[HKEY_CLASSES_ROOT\Directory\shell\Cmder\command]
@="\"D:\\tools\\cmder\\Cmder.exe\" \"%1\""

把Cmder 的路径替换为真实的路径,使用 UTF-8 BOM 编码(否则这个菜单项会乱码)。然后双击,确定两下,就好了。

删除cmder的右键菜单项

建议在 Cmder 所在目录,创建文件 ContextCmder-Del.reg

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]

保存,双击这个文件后,前面那文件创建的 Cmder 右键菜单将会被移除。

如果喜欢,可以用另外一个 http://babun.github.io/  (一个微型的 Linux ) 或者更Linux 的 https://github.com/robbyrussell/oh-my-zsh

 

参考文档

https://www.zhihu.com/question/19739424

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×