mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2025-06-13 13:03:54 +00:00
use system timezone as default
This commit is contained in:
parent
df1333899d
commit
d28af3d385
@ -48,7 +48,12 @@
|
||||
# set -g fish_prompt_pwd_dir_length 0
|
||||
# set -g theme_project_dir_length 1
|
||||
# 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
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user