When running git bash, I can open a new bash window at my root with Alt+F2
I can open a windows explorer window at the current directory path
$ explorer .
Trying
$ sh
to open a new terminal window at my location just returns
sh: __git_ps1: command not found
and opens the shell in the current window without git running.
How can I quickly open a new bash shell at my location?
Best Answer
StuperUser answer is correct, but I want to add that besides adding shell script in a PATH environment it's also possible to add a simple bash alias into
.bashrc
or.bash_profile
files.Just create alias:
bashrc and bash_profile it's a standard BASH configuration files, you can found them in your user home folder.
More information Bash startup files