Chromium Code Reviews| 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 |