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

Unified Diff: go/bootstrap.py

Issue 2071243002: infra/go: Adding setup instructions and quick setup script. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: cd into the source area. Created 4 years, 6 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 | « go/README.md ('k') | go/quicksetup.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/bootstrap.py
diff --git a/go/bootstrap.py b/go/bootstrap.py
index 1b9eb242962cc8a40b1db10a87cc5003464e3bc9..c0fd3a97ba32142e7eec818330604c636fb305c0 100755
--- a/go/bootstrap.py
+++ b/go/bootstrap.py
@@ -430,6 +430,13 @@ def get_go_environ(
else:
env.pop('APPENGINE_DEV_APPSERVER', None)
+ # Add a tag to the prompt
dnj (Google) 2016/07/01 01:40:42 This broke my shell prompt. Is it really necessary
+ prompt = env.get('PS1')
+ if prompt:
+ prompttag = env.get('INFRA_PROMPT_TAG', '[cr go] ')
+ if prompttag not in prompt:
+ env['PS1'] = prompttag + prompt
+
return env
« no previous file with comments | « go/README.md ('k') | go/quicksetup.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698