3
Add the path to Mongo to my $PATH in git-bash:
jcollum@MACHINE /c/Program Files/mongodb-win32-x86_64-2.2.2/bin
$ PATH=$PATH:/c/Program\ Files/mongodb-win32-x86_64-2.2.2/bin
jcollum@MACHINE /c/Program Files/mongodb-win32-x86_64-2.2.2/bin
$ echo $PATH
/c/Users/jcollum/bin:.:/usr/local/bin:/mingw/bin:/bin:/c/Program Files/ConEmu/ConEmu:/c/Windows/system32:/c/Windows:/c/Windows
/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/c/Program Files/TortoiseGit/bin:/cmd:/c/Program Files/Microsoft/We
b Platform Installer/:/c/Program Files (x86)/Microsoft ASP.NET/ASP.NET Web Pages/v1.0/:/c/Program Files (x86)/Windows Kits/8.0
/Windows Performance Toolkit/:/c/Program Files/Microsoft SQL Server/110/Tools/Binn/:/c/Program Files/mongodb-win32-x86_64-2.2.
2/bin
jcollum@MACHINE /c/Program Files/mongodb-win32-x86_64-2.2.2/bin
$ which mongod
/c/Program Files/mongodb-win32-x86_64-2.2.2/bin/./mongod
That all looks right. But when I start a new console or restart ConEmu, the path is gone. Is it possible to get these changes to 'stick' using Git-Bash on Win7?
Got the 'how to' for PATH here:
https://unix.stackexchange.com/questions/26047/how-to-correctly-add-a-path-to-path
Edit the
PATH
variable in your.bashrc
file. – Blender – 2013-01-03T22:42:03.763