Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1349)

Unified Diff: bootstrap/win/git-bash.template.sh

Issue 1847783002: Multiple improvements to windows bash integration. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Add direct mode and unbuffered Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « .gitignore ('k') | bootstrap/win/win_tools.bat » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bootstrap/win/git-bash.template.sh
diff --git a/bootstrap/win/git-bash.template.sh b/bootstrap/win/git-bash.template.sh
new file mode 100644
index 0000000000000000000000000000000000000000..b34b5dc569db8255ad5335b153be1166679256e4
--- /dev/null
+++ b/bootstrap/win/git-bash.template.sh
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+export EDITOR=${EDITOR:=notepad}
+WIN_BASE=`dirname $0`
+UNIX_BASE=`cygpath "$WIN_BASE"`
+export PATH=$PATH:$UNIX_BASE/SVN_BIN_DIR:$UNIX_BASE/PYTHON_BIN_DIR:$UNIX_BASE/PYTHON_BIN_DIR/Scripts
+export PYTHON_DIRECT=1
+export PYTHONUNBUFFERED=1
+if [[ $# > 1 ]]; then
+ $UNIX_BASE/GIT_BIN_DIR/bin/bash.exe "$@"
+else
+ $UNIX_BASE/GIT_BIN_DIR/git-bash.exe &
+fi
« no previous file with comments | « .gitignore ('k') | bootstrap/win/win_tools.bat » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698