Skip to content

Instantly share code, notes, and snippets.

@wangmuy
Forked from dgw/git-bash-portable.bat
Last active August 30, 2016 02:17
Show Gist options
  • Save wangmuy/ca5642674b70e545f9e4e4c2a18c8502 to your computer and use it in GitHub Desktop.
Save wangmuy/ca5642674b70e545f9e4e4c2a18c8502 to your computer and use it in GitHub Desktop.
git-bash-portable startup
@echo off
rem Copyright (C): 2010 Voyagerfan5761
rem http://technobabbl.es/
rem Put in your git-for-windows root dir
set USER=wangmuy
set HOMEDRIVE=%~d0
set HOMEPATH=%~dp0home\%USER%\
set HOME=%~dp0home\%USER%\
set USERPROFILE=%HOMEPATH%
set HISTFILE=%HOMEPATH%.bash_history
set BASHRC=%USERPROFILE%.bashrc
vendor\git-for-windows\bin\bash.exe --login -i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment