1. 下载和解压

* 到cmder官网 <http://cmder.net/>下载 cmder_mini.zip(当然也可以选择到cmder的github
<https://github.com/cmderdev/cmder>上下载)
* 直接解压 cmder_mini.zip,如解压到:D:\\cmder_mini
* 将 D:\\cmder_mini 添加到系统环境变量中,至此已可用cmder
* crtl+R,输入cmder,确定,即可运行cmder
2. 注册右键菜单

* 作用:在文件管理器任意目录下的空白处右击,会出现cmder here的选项,可以快速打开cmder并进入到所需的目录
* 配置操作:对开始菜单按钮右击,选择打开windows powershell的管理员模式,执行以下命令即可: Cmder.exe /REGISTER
ALL
*
但有可能出现使用右键菜单的 cmder here 总是打开 cmder_mini/config/profile.d 的路径的情况,因此可以这样配置:

* 在任意目录下运行cmder,在侧边栏右键,选择setting
* Startup->Tasks
* 选中Predefined tasks中的 {cmd::Cmder},将Start
Console改为:(两种方法都可以,就是d:后面跟的是需要打开的路径) cmd /k "%ConEmuDir%\..\init.bat"
-new_console:d:\# 或者: cmd /k "%ConEmuDir%\..\init.bat" -new_console:d:%CD%
* 假如要删除菜单,网传了一个方法,但本人并没有试过:建立一个bat文件如下内容,执行即可 @echo off Reg delete
"HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder" /f pause
3. 更改lambda符号

在cmder执行:
cmderr cd vendor/ vi clink.lua
将第41行的代码修改如下:
-- 原来代码: -- color codes: "\x1b[1;37;40m" local cmder_prompt =
"\x1b[1;32;40m{cwd} {git}{hg}{svn} \n\x1b[1;30;40m{lamb} \x1b[0m" -- 修改后: --
color codes: "\x1b[1;37;40m" local cmder_prompt = "\x1b[1;32;40m{cwd}
{git}{hg}{svn} \n\x1b[1;37;40m$ \x1b[0m"
即:将{lamb}改为想要显示的符号,此例子中是修改为 $ ;其次,cmder版本为1.3.3的lambda符号的颜色有问题,修改颜色为
\x1b[1;37;40m 即可显示lambda符号。

4. 快捷指令设置

修改 cmder_mini\config\user-aliases.cmd 文件的内容即可,具体操作如下:
cmderr cd config/ vi user-aliases.cmd :set nu insert(键) 1 ;= @echo off 2 ;=
rem Call DOSKEY and use thisfile as the macrofile 3 ;= %SystemRoot%\
system32\doskey /listsize=1000 /macrofile=%0% 4 ;= rem In batch mode, jump to
the end of thefile 5 ;= goto:eof 6 ;= Add aliases below here 7 e.=explorer . 8
gl=gitlog --oneline --all --graph --decorate $* 9 ls=ls --show-control-chars -F
--color $* 10 pwd=cd 11 clear=cls 12 history=cat "%CMDER_ROOT%\config\.history"
13 unalias=alias /d $1 14 vi=vim $* 15 cmderr=cd /d "%CMDER_ROOT%" 16 17 ll=ls
-l --color=auto $* :wq
第17行就是添加的 ll 指令

友情链接
KaDraw流程图
API参考文档
OK工具箱
云服务器优惠
阿里云优惠券
腾讯云优惠券
华为云优惠券
站点信息
问题反馈
邮箱:ixiaoyang8@qq.com
QQ群:637538335
关注微信