From 35c0a1b9b075d1248edab5870cea6426a9bcc8d3 Mon Sep 17 00:00:00 2001 From: WiredSharp Date: Sat, 12 Sep 2020 14:24:40 +0200 Subject: [PATCH] use system timezone as default --- fish_right_prompt.fish | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fish_right_prompt.fish b/fish_right_prompt.fish index bd6ee94..ef54772 100644 --- a/fish_right_prompt.fish +++ b/fish_right_prompt.fish @@ -63,7 +63,9 @@ function __bobthefish_timestamp -S -d 'Show the current timestamp' or set -l theme_date_format "+%c" echo -n ' ' - env TZ="$theme_date_timezone" date $theme_date_format + set -q theme_date_timezone + and env TZ="$theme_date_timezone" date $theme_date_format + or date $theme_date_format end function fish_right_prompt -d 'bobthefish is all about the right prompt'