I'm a lazy guy and I would like to have a bat file launch my whole environment (on Windows).
My problem is with git bash. I can successfully launch a git bash shell, my problem is to automaticaly execute a cd command right after it opens.
So far I'm doing :
"C:\Program Files (x86)\Git\bin\sh.exe" --login -i
What I would like is to add :
"cd ~/Projects/current"
I've tried after some research:
"C:\Program Files (x86)\Git\bin\sh.exe" --login -i && "cd ~/Projects/current"
"C:\Program Files (x86)\Git\bin\sh.exe" --login -i "cd ~/Projects/current"
start cmd /k "C:\Program Files (x86)\Git\bin\sh.exe" --login -i && "cd ~/Projects/current"
With every try I end up in ~/Desktop. It seems that the cd is never executed