diff options
author | Dennis Eriksen <d@ennis.no> | 2023-01-06 11:10:26 +0100 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2023-01-06 11:10:26 +0100 |
commit | 2afadc604763dc0c9fbf41eff39963fd597f4ccd (patch) | |
tree | fb7ab19c27980aef001ea9758e301c030453cb6b | |
parent | lets just let srand be srand - a mathfunction. for simplicity. (diff) | |
download | idgatt-2afadc604763dc0c9fbf41eff39963fd597f4ccd.tar.gz |
pull inn latest adam3-prompt
-rw-r--r-- | zsh/.zsh/lib/adam3/prompt_adam3_setup | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zsh/.zsh/lib/adam3/prompt_adam3_setup b/zsh/.zsh/lib/adam3/prompt_adam3_setup index 50a1e54..3b885b0 100644 --- a/zsh/.zsh/lib/adam3/prompt_adam3_setup +++ b/zsh/.zsh/lib/adam3/prompt_adam3_setup @@ -54,7 +54,7 @@ prompt_adam3_setup () { prom[dirD]='%-10<..<%~%<<' # Time - [[ $timecolor != false ]] && prom[time]='%*' + [[ $timecolor != false ]] && prom[time]='%D{%H:%M:%S}' # SHLVL prom[shlvl]='%(10L.%F{58}%L%f .)' @@ -145,7 +145,7 @@ prompt_adam3_precmd () { # We need to recalculate prompt_length to know where to put time prompt_length=${#${(S%%)prom//\%([BSUbfksu]|[FK]\{*\})/}} local rprompt_length=${#${(S%%)PROMPT_ADAM3_RPS1//\%([BSUbfksu]|[FK]\{*\})/}} - local timepadding=$((COLUMNS - prompt_length + $#PROMPT_ADAM3_RPS1 - rprompt_length - 1)) + local timepadding=$((COLUMNS - prompt_length + $#PROMPT_ADAM3_RPS1 - rprompt_length - 3 )) # Add time. Left-pad with spaces. prom+=${(l:$timepadding:)PROMPT_ADAM3_RPS1} |