summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@osg.samsung.com>2016-11-02 15:40:54 -0300
committerThibault Saunier <thibault.saunier@osg.samsung.com>2016-11-02 16:20:56 -0300
commit0b3ba49c6c4f38893dbf402e2c912e6ea137b14e (patch)
tree1b7681b1ce2764456c30b1e747cfe2987950a4c8 /README.md
parent33e079129461f171d7fb7e4dfc5586017e1bd3e6 (diff)
downloadgstreamer-0b3ba49c6c4f38893dbf402e2c912e6ea137b14e.tar.gz
Fix setting $PS1 for bash
And let user know how to set prompt for zsh and powerline in our README.
Diffstat (limited to 'README.md')
-rw-r--r--README.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/README.md b/README.md
index 85af59f6de..13e67d0e88 100644
--- a/README.md
+++ b/README.md
@@ -40,3 +40,32 @@ If your operating system handles symlinks, built modules source code will be ava
at the root of `gst-build/` for example GStreamer core will be in `gstreamer/`. Otherwise
they will be present in `subprojects/`. You can simply hack in there and to rebuild you
just need to rerun `ninja -C build/`.
+
+
+## Add information about GStreamer development environment in your prompt line
+
+### Bash prompt
+
+We automatically handle `bash` and set `$PS1` accordingly
+
+### Zsh prompt
+
+In your `.zshrc`, you should add something like:
+
+```
+export PROMPT="$GST_ENV-$PROMPT"
+```
+
+### Using powerline
+
+In your powerline theme configuration file (by default in
+`{POWERLINE INSTALLATION DIR}/config_files/themes/shell/default.json`)
+you should add a new environment segment as follow:
+
+```
+{
+ "function": "powerline.segments.common.env.environment",
+ "args": { "variable": "GST_ENV" },
+ "priority": 50
+},
+```