changed date in prompt to show day two digits
This commit is contained in:
@@ -90,7 +90,7 @@ prompt_end() {
|
||||
prompt_context() {
|
||||
if [[ "$USERNAME" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
|
||||
#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
|
||||
}
|
||||
|
||||
@@ -112,7 +112,7 @@ prompt_git() {
|
||||
dirty=$(parse_git_dirty)
|
||||
ref=$(git symbolic-ref 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
|
||||
prompt_segment yellow black
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user