From 00f55783111e3614460eab871d495d0f81c5bc11 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Tue, 13 Oct 2015 13:39:52 -0700 Subject: [PATCH] Allow overriding the right prompt date format. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit set -g theme_date_format "+%a %H:%M" … or something like that :) See #11 --- README.md | 1 + fish_prompt.fish | 1 + fish_right_prompt.fish | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c1d6477..9116bbd 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,7 @@ 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_date_format "+%a %H:%M" set -g default_user your_normal_user ``` diff --git a/fish_prompt.fish b/fish_prompt.fish index c804adf..ec37ca6 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -19,6 +19,7 @@ # set -g theme_display_virtualenv no # set -g theme_display_ruby no # set -g theme_display_user yes +# set -g theme_date_format "+%a %H:%M" # set -g default_user your_normal_user set -g __bobthefish_current_bg NONE diff --git a/fish_right_prompt.fish b/fish_right_prompt.fish index b4d14c9..80a3590 100644 --- a/fish_right_prompt.fish +++ b/fish_right_prompt.fish @@ -1,5 +1,6 @@ function fish_right_prompt -d 'bobthefish is all about the right prompt' set_color $fish_color_autosuggestion[1] - date + set -q theme_date_format; or set -l theme_date_format "+%c" + date $theme_date_format set_color normal end