changing mingw' startup directory or creating mingw symlinks

this is the simplest way, I think:

  • open the shell

  • vim .profile (ESC / i to enter insert mode)

    #!/bin/bash

    cd /c/Users/jbr

(ESC / wq to write and close editor)

  • test the .profile bash file: source .profile

  • close and reopen the shell.

Enjoy, Fabar


If anyone else finds this post looking for an answer, what worked for me was

  1. Create shortcut if one doesn't already exist. Could be on your desktop or taskbar.
  2. Right click >> Properties >> and change the Start in: value.
  3. Use the shortcut and instantly start in your project directory.

I have several shortcuts for various projects in a line on my Desktop so I can quickly start a terminal in each of those directories and get right to work!

Tags:

Windows

Mingw