From c23be22adcacbc6a455476a09d1c28def705211a Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Fri, 1 Dec 2017 14:16:34 +0000 Subject: README: Document fish shell prompt customization --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 0a0f9d93fe..80585904b0 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,16 @@ In your `.zshrc`, you should add something like: export PROMPT="$GST_ENV-$PROMPT" ``` +### Fish prompt + +In your `~/.config/fish/functions/fish_prompt.fish`, you should add something like this at the end of the fish_prompt function body: + +``` +if set -q GST_ENV + echo -n -s (set_color -b blue white) "(" (basename "$GST_ENV") ")" (set_color normal) " " +end +``` + ### Using powerline In your powerline theme configuration file (by default in -- cgit v1.2.1