Surya Sharma

Machine Learning Applications | Computer Vision | This website may be my recipe book.

Configuring MinGW and MSYS

Edit: I have since moved on to using Cygwin and vim instead. MinGW compiles programs to run on windows, while Cygwin compiles them to run using the Cygwin DLL, which emulates *nix better imo.

I also use ConEmu2 as my terminal.

Personal notes on MinGW and MSYS

Create a shortcut to MSYS by going to Shell:Programs using the run dialog box.

  • Mount the entire drive by adding the following line to MinGW\msys\1.0\etc\fstab

C:/ /c

  • Make mingw use .bashrc (https://superuser.com/questions/405342/mingw-bash-profile)

echo "if [ -f ~/.bashrc ]; then . ~/.bashrc; fi" >> .profile  

  • Add the following line to .bashrc in your home folder (cd ~)

echo "alias subla='/c/Program\ Files/Sublime\ Text\ 3/sublime_text.exe'" >> .bashrc

  • Launch sublime in a separate process by using

subl filename.txt &

Add an alias to the Dropbox folder: Add this to .bashrc (https://stackoverflow.com/a/39839346)

shopt -s cdable_vars
export dbox=/c/Users/s/Dropbox

Install:

Meldmerge for Diff: http://meldmerge.org/

Next Post

Previous Post

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

© 2024 Surya Sharma

Theme by Anders Norén