Msys2的安裝,並整合到cmder中

下載:msys2-x86_64-20161025.exegit

下載安裝包,而後裝上。github

打開msys的shell以後首先升級一下pacman,而後就能夠愉快地Syu了。shell

$ pacman -Sy pacman
$ pacman -Syu

安裝git,zsh,vimvim

$ pacman -S git zsh vim

把MSYS目錄中的usr/bin加到環境變量裏面去,在正常的cmd下面就也能跑其中的軟件了。bash

添加MSYS2_ROOT環境變量,值爲msys2安裝位置ide

 

修改Msys2鏡像源:(msys2\etc\pacman.d路徑)spa

##
## MSYS2 repository mirrorlist
##

## Primary
## msys2.org
Server = http://jaist.dl.sourceforge.net/project/msys2/REPOS/MSYS2/$arch
Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/$arch
Server = http://sourceforge.mirrorservice.org/m/ms/msys2/REPOS/MSYS2/$arch
Server = http://mirror.bit.edu.cn/msys2/REPOS/MSYS2/$arch


Server = http://repo.msys2.org/msys/$arch
Server = http://downloads.sourceforge.net/project/msys2/REPOS/MSYS2/$arch
Server = http://www2.futureware.at/~nickoe/msys2-mirror/msys/$arch/

32位:.net

##
## 32-bit Mingw-w64 repository mirrorlist
##

## Primary
## msys2.org
Server = http://jaist.dl.sourceforge.net/project/msys2/REPOS/MINGW/i686
Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686
Server = http://sourceforge.mirrorservice.org/m/ms/msys2/REPOS/MINGW/i686
Server = http://mirror.bit.edu.cn/msys2/REPOS/MINGW/i686


Server = http://repo.msys2.org/mingw/i686
Server = http://downloads.sourceforge.net/project/msys2/REPOS/MINGW/i686
Server = http://www2.futureware.at/~nickoe/msys2-mirror/i686/
View Code

64位:3d

##
## 64-bit Mingw-w64 repository mirrorlist
##

## Primary
## msys2.org
Server = http://jaist.dl.sourceforge.net/project/msys2/REPOS/MINGW/x86_64
Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/x86_64
Server = http://sourceforge.mirrorservice.org/m/ms/msys2/REPOS/MINGW/x86_64
Server = http://mirror.bit.edu.cn/msys2/REPOS/MINGW/x86_64

Server = http://repo.msys2.org/mingw/x86_64
Server = http://downloads.sourceforge.net/project/msys2/REPOS/MINGW/x86_64
Server = http://www2.futureware.at/~nickoe/msys2-mirror/x86_64/
View Code

 

整合cmder:code

Command:

set CHERE_INVOKING=1 & %MSYS2_ROOT%\usr\bin\bash.exe --login -i -new_console:C:"%MSYS2_ROOT%\msys2.ico"

 

 效果:

 

 

http://www.jianshu.com/p/c740b71e7775

https://zyzyz.github.io/zh-cn/Integrate-MSYS2-into-Cmder/

http://blog.csdn.net/callinglove/article/details/48601775

https://mirrors.tuna.tsinghua.edu.cn/help/msys2/

相關文章
相關標籤/搜索