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

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: Review fixes. 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
Index: go/bootstrap.py
diff --git a/go/bootstrap.py b/go/bootstrap.py
index 1b9eb242962cc8a40b1db10a87cc5003464e3bc9..5d447f7574d05d2836f0a34b86e357ece74bc323 100755
--- a/go/bootstrap.py
+++ b/go/bootstrap.py
@@ -430,6 +430,12 @@ def get_go_environ(
else:
env.pop('APPENGINE_DEV_APPSERVER', None)
+ # Add a tag to the prompt
+ prompt = env.get('PS1')
+ if prompt:
+ if not prompt.startswith('[cr-infra-go-area] '):
Vadim Sh. 2016/06/18 16:12:09 nit: '[cr-infra-go-area]' not in prompt (I can im
mithro 2016/06/20 14:19:26 Done.
+ env['PS1'] = '[cr-infra-go-area] ' + prompt
Vadim Sh. 2016/06/18 16:12:09 good enough, though I'm very tempted to bikeshed a
mithro 2016/06/20 14:19:26 I'd like the prompt to match the script you run...
Eric Burnett 2016/06/20 14:32:09 Command line flag sounds hard - users don't genera
mithro 2016/06/21 06:55:05 If I make it a command line argument I can set it
M-A Ruel 2016/06/21 12:21:44 My bikeshed color would be '\033[33;1mcit\033[0m '
mithro 2016/06/22 04:39:20 Adding a command line flag turned out to be a bigg
+
return env

Powered by Google App Engine
This is Rietveld 408576698