Windows uses Cmder
cmder
Is an enhanced command-line tool, not only can use Windows
all the commands, the Gengshuang can use linux
command, shell
command.
download
Official website address: cmder official website
Download time, there will be two versions, namely mini
the full
version: The only difference is that there is no built-in msysgit
tool, which is Git for Windows
standard equipment: a full install version cmder
comes with msysgit
, in addition to git
outside the command itself, which can use a lot of linux
command: for example grep
, curl
(not wget
), like vim
, grep
, tar
, unzip
, ssh
, ls
, bash
, perl
for the love toss Coder
for more pain point demand.
Directly extract to a directory on it, click on the Cmder.exe
run.
Configuration environment variable
新建系统变量
- variable name:
CMDER_HOME
- variable:
安装绝对路径
Save.
Edit Path, added %CMDER_HOME%
.
Configuration cmder right-click menu
After configuring the environment variables in the terminal administrator privileges, enter the following statement.
Windows 8
Or Windows 10
you can directly win + x
press a
enter.
Input Cmder.exe /REGISTER ALL
.
Open a new tab terminal administrator privileges
After starting the terminal, use the shortcut key Ctrl + t
, new console
, in Create new console
the input {bash::bash as Admin}
, check the bottom right corner Run as administator
, click Start
the button
Set up
Use shortcut keys to open the set win + alt + p
.
Set bash
as the default option open, click on the left side Startup
, in Specified named task
the drop-down list {bash::bash as Admin}
, click Save settings
.
Solve the Chinese garbled
In setting
Settings->Startup->Environment
added
set LANG=zh_CN.UTF-8
set LC_ALL=zh_CN.utf8
Vim use of a direction key failure WSL
In Settings-->Startup-->Command line
the value to%windir%\system32\wsl.exe ~ -cur_console:p:n
The command prompt λ into $
Enter Cmder.exe
the directory is located, enter vendor
, open the clink.lua
file,
search for λ
symbols, searched λ
revised to$
Save and reboot