diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2015-04-03 19:03:52 +0300 |
---|---|---|
committer | Ben Hilburn <bhilburn@gmail.com> | 2015-04-03 19:03:52 +0300 |
commit | 56dc536f6c143ca892c1922f5be132c13351c4f2 (patch) | |
tree | e2dfd97c26f28ee063d3f0faecbf5a14190ae1f2 /powerlevel9k.zsh-theme | |
parent | b1d6d3e67d6f6c936c1150ab5f438813bed0a23a (diff) | |
parent | 367c354103e88575d5d2801bc95d59f1ba865e88 (diff) |
Merge pull request #20 from dritter/dritter/date_configurable
Better configurability of time format
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rw-r--r-- | powerlevel9k.zsh-theme | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 1ac02d6d..27c547f8 100644 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -301,7 +301,12 @@ prompt_longstatus() { # System time prompt_time() { - $1_prompt_segment $DEFAULT_COLOR_INVERTED $DEFAULT_COLOR '%D{%H:%M:%S} ' + local time_format='%D{%H:%M:%S}' + if [[ -n $POWERLEVEL9K_TIME_FORMAT ]]; then + time_format=$POWERLEVEL9K_TIME_FORMAT + fi + + $1_prompt_segment $DEFAULT_COLOR_INVERTED $DEFAULT_COLOR "$time_format " } # Command number (in local history) |