Skip to content

Instantly share code, notes, and snippets.

@joaompinto
Created March 16, 2015 17:40
Show Gist options
  • Save joaompinto/141fa88b7912b0b32296 to your computer and use it in GitHub Desktop.
Save joaompinto/141fa88b7912b0b32296 to your computer and use it in GitHub Desktop.
How to create a portable MSYS archive
Surviving on Windows with MSYS
If you are experienced Linux/Unix user you will get a bad time working on Windows, to my rescue comes MSYS which contains most of common utilities like tail, grep and friends. It does not require installation so it can be easily used from Windows servers.
Download the installer (mingw-get-*-bin.zip/ ) from:
http://sourceforge.net/projects/mingw/files/Installer/mingw-get/
Extract mingw-get-*-bin.zip to C:\mingw_install
From the command line:
cd C:\mingw_install\bin
mingw-get.exe install msys-mintty msys-grep msys-base msys-openssh
You will get a msys directory on C:\mingw_install .
At msys\1.0 create the file run-mintty.bat with:
@start %~dp0bin\mintty -e /bin/bash --login
Zip the msys directory, and pread it over your windows systems :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment