How do I set the startup dir for a new Tab using msysgit sh.exe in Console2?

0

1

My Tab Shell: C:\msys\1.0\bin\sh.exe --login -i

However Startup Dir doesn't seem to work, neither with C:\ nor /c/.

There is a similar question here, but it deals with Explorer extensions. I'm looking for a way to open the tab by default in a specific directory.

Andrej Mitrović

Posted 2012-11-28T12:10:32.480

Reputation: 95

Answers

1

Looks like your bash version does not supports "startup directory". I believe it is not git-bash. git bash usually located in the another dir:

"C:\Program Files (x86)\Git\bin\sh.exe" --login -i

MinGW bash (in your case) does not support startup dir.

BTW, did you try ConEmu (I'm the author)? It is another windows terminal full of features.

Maximus

Posted 2012-11-28T12:10:32.480

Reputation: 19 395

I really did want to use MinGW bash, not Git bash. Thanks for the recommendation, I'll give ConEnum a try later. – Andrej Mitrović – 2012-11-29T15:53:14.603

Thought, if you need special dir on bash startup and it is persistent - you may add cd /c/... command to your bash profile script. – Maximus – 2012-11-29T19:08:09.167

Thanks again. I can change cd "$HOME" to cd /c/mydir in the \msys\1.0\etc\profile file and it works this way. – Andrej Mitrović – 2012-11-30T13:26:52.577