选择 cmder 的原因
(略)
环境变量
win + break
,系统,高级,环境变量
CMDER_ROOT = C:\Program Files\cmder
PATH += %CMDER_ROOT%
终端模拟器:Fluent Terminal
什么是终端模拟器?就是那个图形界面。cmder自带的那个叫做 ConEmu,太丑啦!我们换一个。
配置教程:https://github.com/cmderdev/cmder/wiki/Seamless-FluentTerminal-Integration
To run Cmder under Fluent Terminal, follow these steps:
- Download and install the latest release of Fluent Terminal: instructions here
- Save the following file under
Monokai.flutecolors
on your Desktop:
📦 Monokai.flutecolors
Tip: Make sure your filename doesn’t end in .txt
when you save it. - Follow the instructions in this page to set-up the
%CMDER_ROOT%
environmental variable
Tip: If you already have a working environment variable, skip this step - Open Fluent Terminal, then go to ⚙ Settings using Ctrl + , (Control-Comma) keyboard shortcut
- Navigate to Themes → 🖌 Import, select Monokai.flutecolors from your Desktop,
then click on ✓ Set Active - Navigate to Profiles → ➕ Create new, and enter the following into the fields:Tip: This will install the default clink-based profile (i.e. “cmd”).
Under the Optional Profiles you can find other shells, e.g. bash and Powershell.- Name: Cmder/Cmd
- Shell executable location:
C:\Windows\System32\cmd.exe
- Working directory:
C:\Users\[Username]
Tip: Substitute [Username]
with your username, e.g.: C:\Users\David
. - Arguments:
/k title Cmder/Cmd & "%CMDER_ROOT%\vendor\init.bat"
- Theme: Monokai
- Keyboard Shortcut: Ctrl+Alt+c or whatever you prefer.
Tip: So you can launch more tabs.
- Click 💾 Save
- Click ✓ Set Default
- Download and install your choice from any of the fonts below, then enable it in
the ⚙ Settings → Terminal tab → under the Font family section.Tip: This step will prevent the issue of extra spacing when the default font is used.
Alternatively, you can simply customize the λ prompt and change it to $, or your prompt of choice. Click here to see how
- (Optional) In the Terminal tab, reduce the “Background opacity” to around
0.30
for a better acrylic effect - Close FluentTerminal, and re-open it.😄 You’re done!
注意,换了终端模拟器之后,我们需要重新把它也添加到右键菜单里,脚本如下
https://github.com/felixse/FluentTerminal/tree/master/Explorer%20Context%20Menu%20Integration
字体:Fira Code
Regular 就够了,当然你可以下载完整 release。
然后 设置>终端>字体,应用即可。
高亮插件:powerline
下载 Cmder-powerline-prompt 项目中的所有 .lua
文件,放置在 %CMDER_ROOT%/config
目录中,然后重启 Cmder
其他
在Fluent Terminal的设置界面随便逛逛吧,简洁不花哨,功能大多实用。
如果只做以上的改动,效果应该是这样: