diff options
author | Thibault Saunier <thibault.saunier@osg.samsung.com> | 2016-11-02 15:40:54 -0300 |
---|---|---|
committer | Thibault Saunier <thibault.saunier@osg.samsung.com> | 2016-11-02 16:20:56 -0300 |
commit | 0b3ba49c6c4f38893dbf402e2c912e6ea137b14e (patch) | |
tree | 1b7681b1ce2764456c30b1e747cfe2987950a4c8 /README.md | |
parent | 33e079129461f171d7fb7e4dfc5586017e1bd3e6 (diff) | |
download | gstreamer-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.md | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -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 +}, +``` |