changed date in prompt to show day two digits

This commit is contained in:
crunchie
2025-08-08 08:15:00 +02:00
parent 41e4c61c2f
commit 5b82409ae0

View File

@@ -90,7 +90,7 @@ prompt_end() {
prompt_context() { prompt_context() {
if [[ "$USERNAME" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then if [[ "$USERNAME" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
#prompt_segment black yellow "%(!.%{%F{yellow}%}.)%n@%m" #prompt_segment black yellow "%(!.%{%F{yellow}%}.)%n@%m"
prompt_segment black yellow "%(!.%{%F{yellow}%}.)%D{%f.%m.%Y} %D{%H:%M:%S}" prompt_segment black yellow "%(!.%{%F{yellow}%}.)%D{%d.%m.%Y} %D{%H:%M:%S}"
fi fi
} }
@@ -112,7 +112,7 @@ prompt_git() {
dirty=$(parse_git_dirty) dirty=$(parse_git_dirty)
ref=$(git symbolic-ref HEAD 2> /dev/null) || \ ref=$(git symbolic-ref HEAD 2> /dev/null) || \
ref="◈ $(git describe --exact-match --tags HEAD 2> /dev/null)" || \ ref="◈ $(git describe --exact-match --tags HEAD 2> /dev/null)" || \
ref="➦ $(git rev-parse --short HEAD 2> /dev/null)" ref="➦ $(git rev-parse --short HEAD 2> /dev/null)"
if [[ -n $dirty ]]; then if [[ -n $dirty ]]; then
prompt_segment yellow black prompt_segment yellow black
else else