Windows uses Cmder

Windows uses Cmder

cmderIs an enhanced command-line tool, not only can use Windowsall the commands, the Gengshuang can use linuxcommand, shellcommand.

download

Official website address: cmder official website

Download time, there will be two versions, namely minithe fullversion: The only difference is that there is no built-in msysgittool, which is Git for Windowsstandard equipment: a full install version cmdercomes with msysgit, in addition to gitoutside the command itself, which can use a lot of linuxcommand: for example grep, curl(not wget), like vim, grep, tar, unzip, ssh, ls, bash, perlfor the love toss Coderfor more pain point demand.

Directly extract to a directory on it, click on the Cmder.exerun.

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 8Or Windows 10you can directly win + xpress aenter.
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 consolethe input {bash::bash as Admin}, check the bottom right corner Run as administator, click Startthe button

Set up

Use shortcut keys to open the set win + alt + p.

Set bashas the default option open, click on the left side Startup, in Specified named taskthe drop-down list {bash::bash as Admin}, click Save settings.

Solve the Chinese garbled

In setting
Settings->Startup->Environmentadded
set LANG=zh_CN.UTF-8
set LC_ALL=zh_CN.utf8

Vim use of a direction key failure WSL

In Settings-->Startup-->Command linethe value to%windir%\system32\wsl.exe ~ -cur_console:p:n

The command prompt λ into $

Enter Cmder.exethe directory is located, enter vendor, open the clink.luafile,
search for λsymbols, searched λrevised to$

Save and reboot

Guess you like

Origin www.cnblogs.com/zzhaolei/p/11068172.html