Open Git Bash with default path



Problem: Every-time I launch git bash I need to traverse to the work-space directory that I am working on.

Solution:

There are different ways you could do this:

the easiest is to Right click on the Windows shortcut that you use to launch git bash, and click Properties. Change the value of "Start In" to your desired workspace path
image description

Or use ConEmu where you have a task for starting Git Bash like

enter image description here
Note the button "Startup dir..." in the bottom. It adds a -new_console:d: to the startup command of the Git Bash. Make it point to wherever you like

Or Add the line to the .bashrc file in the home directory (create the file if it doesn't exist):

cd ~
touch .bashrc
echo "cd ~/Desktop/repos/" >> .bashrc

Comments

Popular posts from this blog

XPATH for IE / internet explorer

All time good software testing books!