Allow overriding the right prompt date format.

set -g theme_date_format "+%a %H:%M"

… or something like that :)

See #11
This commit is contained in:
Justin Hileman 2015-10-13 13:39:52 -07:00
parent 0b9dc24eec
commit 00f5578311
3 changed files with 4 additions and 1 deletions

View File

@ -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
```

View File

@ -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

View File

@ -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