From 13c35f34248530ec66131a9c4498ce08b0893f49 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Tue, 13 Oct 2015 14:08:06 -0700 Subject: [PATCH] Allow disabling the title segments. set -g theme_title_display_process yes set -g theme_title_display_path no See #11 --- README.md | 2 ++ fish_prompt.fish | 2 ++ fish_title.fish | 6 +++--- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9116bbd..ce9b824 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,8 @@ set -g theme_display_hg yes set -g theme_display_virtualenv no set -g theme_display_ruby no set -g theme_display_user yes +set -g theme_title_display_process yes +set -g theme_title_display_path no set -g theme_date_format "+%a %H:%M" set -g default_user your_normal_user ``` diff --git a/fish_prompt.fish b/fish_prompt.fish index ec37ca6..ca59475 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -19,6 +19,8 @@ # set -g theme_display_virtualenv no # set -g theme_display_ruby no # set -g theme_display_user yes +# set -g theme_title_display_process yes +# set -g theme_title_display_path no # set -g theme_date_format "+%a %H:%M" # set -g default_user your_normal_user diff --git a/fish_title.fish b/fish_title.fish index 4b2f08e..938c83d 100644 --- a/fish_title.fish +++ b/fish_title.fish @@ -1,4 +1,4 @@ function fish_title - echo $_ ' ' - pwd -end \ No newline at end of file + [ "$theme_title_display_process" = 'yes' ]; and echo $_ ' ' + [ "$theme_title_display_path" != 'no' ]; and pwd +end