a windows shell you will lovehtml
Babun features the following:python
install.bat
雙擊,安裝開始,安裝完成後,會在桌面建立一個babun的快捷方式。安裝完成後,能夠考慮換一下cygwin的源:linux
cd ~ vim .pact/pact.repo PATC_REPO=http://mirrors.163.com/cygwin
{ d } » babun -h /cygdrive/d babun: Manages the instance of babun. Usage: "babun update" to fetch the newest version of babun "babun check" to check if the installation is correct "babun shell" to display the name of the user's default shell (may not be the currently used shell) "babun shell <new_shell>" to set the user's default shell to new_shell "babun install" to (re)install babun to the current user's home folder "babun login" to login to the user's default shell "babun <plugin_name> cmd" to execute cmd provided by the given plugin Options: --help --version --welcome
由於Babun默認的Python是python2,因而先刪除了鏈接再根據我係統中Python所在文件夾建立了python的連接git
cd /usr/bin rm -rf python ln -s /cygdrive/c/ProgramData/Anaconda3/python.exe /usr/bin/python python -i #在Babun中,須要加上-i參數,才能正常啓動python
1.添加 cmder 到右鍵菜單,管理員權限打開自帶cmd,運行以下命令:github
Cmder.exe /REGISTER ALL
此外,啓動設置shell
去除 *cmd /k ""%ConEmuDir%\..\init.bat" " 改成:cmd /k 「%ConEmuDir%..\init.bat」 -new_console:d:%CD%
2.中文顯示
settings->Startup->Environmenvim
set LANG=zh_CN.UTF-8
3.alias設置
cmder文件夾->config->user-aliases.cmdwindows
ll=ls --show-control-chars -aF --color $*
4.設置分屏的快捷鍵
我將分屏快捷鍵設置爲了 ctrl+shift+→
。ssh
再把babun添加到cmder的tab選項中,ide
/icon "%userprofile%\.babun\cygwin\bin\mintty.exe" /dir "%userprofile%"
,%userprofile%\.babun\cygwin\bin\mintty.exe /bin/env CHERE_INVOKING=1 /bin/zsh.exe
,保存後,就能夠在cmder新建一個babun的窗口,默認的shell是zsh,搭配好了oh-my-zsh
的配置
用Babun的好處是,幾乎linux的命令均可以直接使用,好比rsync
ssh 用戶名@ip exit #退出ssh登陸