Window 命令行神器:cmder

时间:2022-10-07 14:24:11

http://cmder.net/

Window 命令行神器:cmder

https://github.com/cmderdev/cmder/releases/   官网下载地址

http://www.360doc.com/content/17/1122/07/1353678_706036759.shtml

https://blog.csdn.net/zdhsoft/article/details/78550643   Win下必备神器之Cmder

https://blog.csdn.net/bumphy/article/details/79285598   命令行工具之Cmder:(1)入门篇

https://www.jianshu.com/p/479d974078a7

1. 下载

Window 命令行神器:cmder

2.

下载完毕之后解压

Window 命令行神器:cmder

3. 加入到 右键 菜单中

默认情况,没有右键菜单:

Window 命令行神器:cmder

添加步骤:

a.

将 D:\Tools\cmder\Cmder.exe 加入到系统变量 path中

b.  以管理员身份运行 Cmder.exe,然后打开终端

Window 命令行神器:cmder

c. 终端输入:Cmder.exe /REGISTER ALL

Window 命令行神器:cmder

然后回车即可

发现右键菜单多了一句:

Window 命令行神器:cmder

完成。

4. 解决中文乱码

Settings –> Startup –> Environment ,添加:set LANG=zh_CN.GBK

Window 命令行神器:cmder

5.修改提示符( 命令提示符λ替换成$ )

默认情况:

Window 命令行神器:cmder

打开 cmder\vendor\clink.lua

local cmder_prompt = "\x1b[1;32;40m{cwd} {git}{hg}{svn} \n\x1b[1;39;40m{lamb} \x1b[0m"

修改成

local cmder_prompt = "\x1b[1;32;40m{cwd} {git}{hg}{svn} \n\x1b[1;39;40m$ \x1b[0m"

修改后:

Window 命令行神器:cmder

Window 命令行神器:cmder

查看支持的命令:

cmder\vendor\git-for-windows\usr\bin

6. tree命令

tree /f

Window 命令行神器:cmder

tree /f > log.txt

查看帮助:tree /?

Window 命令行神器:cmder

7.启动时报 快捷键 冲突

Window 命令行神器:cmder

更换快捷键:

Window 命令行神器:cmder

8. 中文字体重叠:

Window 命令行神器:cmder

解决方法:

Window 命令行神器:cmder