use system timezone as default

This commit is contained in:
WiredSharp 2020-09-12 14:24:40 +02:00
parent df1333899d
commit d28af3d385
2 changed files with 8 additions and 1 deletions

View File

@ -48,7 +48,12 @@
# set -g fish_prompt_pwd_dir_length 0 # set -g fish_prompt_pwd_dir_length 0
# set -g theme_project_dir_length 1 # set -g theme_project_dir_length 1
# set -g theme_newline_cursor yes # set -g theme_newline_cursor yes
# set -g theme_date_timezone America/Los_Angeles
set -g theme_date_format "+%a %H:%M"
set -g theme_color_scheme solarized
set -g fish_prompt_pwd_dir_length 4
set -g theme_nerd_fonts yes
# ============================== # ==============================
# Helper methods # Helper methods

View File

@ -63,7 +63,9 @@ function __bobthefish_timestamp -S -d 'Show the current timestamp'
or set -l theme_date_format "+%c" or set -l theme_date_format "+%c"
echo -n ' ' 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 end
function fish_right_prompt -d 'bobthefish is all about the right prompt' function fish_right_prompt -d 'bobthefish is all about the right prompt'