diff options
author | Antonio Ospite <antonio.ospite@collabora.com> | 2019-03-08 17:38:43 +0100 |
---|---|---|
committer | Antonio Ospite <antonio.ospite@collabora.com> | 2019-03-17 21:08:08 +0100 |
commit | 8af2376bc0cf366019fc0212f2b441439ada1609 (patch) | |
tree | 9621234c08c808643009990d7d881a15730d43cc /README.md | |
parent | 887da9a04b68ef240f59f4ce32fd102ae618e833 (diff) | |
download | gstreamer-8af2376bc0cf366019fc0212f2b441439ada1609.tar.gz |
gst-uninstalled: make the bash prompt override optional
When using a custom prompt the automatic override may not look good, so
provide a mechanism to disable it.
Document that the user will have to use GST_ENV manually when setting
the prompt to have a visual indicator of the gst-uninstalled
environment.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -136,7 +136,19 @@ built in a `build` directory you can simply run: ### Bash prompt -We automatically handle `bash` and set `$PS1` accordingly +We automatically handle `bash` and set `$PS1` accordingly. + +If the automatic `$PS1` override is not desired (maybe you have a fancy custom prompt), set the `$GST_BUILD_DISABLE_PS1_OVERRIDE` environment variable to `TRUE` and use `$GST_ENV` when setting the custom prompt, for example with a snippet like the following: + +```bash +... +if [[ -n "${GST_ENV-}" ]]; +then + PS1+="[ ${GST_ENV} ]" +fi +... + +``` ### Zsh prompt |