2/14/2017 - 4:08 PM

msys2 #git #msys2

msys2 #git #msys2

Windows Registry Editor Version 5.00

@="Open MSYS2 here"

@="c:\\msys64\\usr\\bin\\mintty.exe /bin/sh -lc 'cd \"$(cygpath \"%V\")\"; exec bash'"

@="Open MSYS2 here"

@="c:\\msys64\\usr\\bin\\mintty.exe /bin/sh -lc 'cd \"$(cygpath \"%V\")\"; exec bash'"

Setting up MSYS2 with Git

  • Download and install msys2 from http://www.msys2.org/
  • After the installation is complete, open the MSys2 prompt
  • Set the http_proxy and https_proxy variables if required using:
export http_proxy=http://your-proxy:port/
export https_proxy=$http_proxy
  • Run
pacman -Syuu

and follow the instructions. Repeat this step until it says there are no packages to update.

  • Within the msys2 prompt, run
pacman -S \
    autoconf autogen automake \
    bc bison \
    clang cmake ctags  \
    dash diffutils dos2unix doxygen \
    ed \
    gcc git git-flow global gnu-netcat \
    lzip liblzma-devel libffi-devel libxslt-devel \
    make man-db man-pages-posix mc mksh \
    ncurses-devel \
    openssl-devel \
    p7zip pcre-devel procps psmisc pwgen \
    rsync \
    tar texinfo tig tmux tree \
    unrar unzip \
    vim \
    w3m \
    zip zlib-devel zsh

NOTE: Symlink creation requires running msys2 as administrator. The variable MSYS should be set to winsymlinks

export MSYS=winsymlinks
  • If you need an easy way to open Msys2 within your current directory in Windows explorer, download and run: msys2-here-install-reg so that you can right-click and choose "MSYS2 here" on a folder.
Windows Registry Editor Version 5.00

[-HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\MSYS2 here]
[-HKEY_CLASSES_ROOT\Folder\shell\MSYS2 here]
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\MSYS2 here\command]
@="C:\\msys64\\msys2.exe bash"

[HKEY_CLASSES_ROOT\Folder\shell\MSYS2 here\command]
@="C:\\msys64\\msys2.exe bash"