X-Git-Url: https://git.alrj.org/?p=zsh.d.git;a=blobdiff_plain;f=S90_prompt;h=e95bc9ee418ad62e7e7f0d219fe541d13d079b4d;hp=adc68c2a9279daf2a04b1cd09568d50d658d71d9;hb=f4c19f9d51cd05cb465aba57c336ebe8334013fc;hpb=e808d77ed363e89fbf07e57e8cfd8608b5bfa2ef diff --git a/S90_prompt b/S90_prompt index adc68c2..e95bc9e 100644 --- a/S90_prompt +++ b/S90_prompt @@ -1,9 +1,5 @@ #! /usr/bin/zsh -autoload -U colors -colors -setopt prompt_subst - # # Prepare colors, ignoring length # @@ -23,15 +19,19 @@ _username="${C_BYELLOW}%n${C_NO}" _machine="${C_BRED}%m${C_NO}" _hour="${C_BCYAN}[%D{%H:%M}]${C_NO}" -_exitcode="%(?::${C_BRED}[ %? ]${C_NO} +_exitcode="%(?::${C_BRED}[ %1v ]${C_NO} )$(true)" -_action="%(3v,%3v%,)" -_path='${C_GREEN}%(5v,%15<..<%5v%<<${C_NO}${C_MAGENTA}@%4v%3v${C_NO}${C_GREEN}/%15<..<%6v%<<,%25<..<%~%<<)${C_NO}' +_action="%(5v,%5v%,)" +_path='${C_GREEN}%(7v,%20<..<%7v%<<${C_NO}${C_MAGENTA}@%6v%5v${C_BYELLOW}%9v${C_NO}${C_GREEN}/%15<..<%8v%<<,%25<..<%~%<<)${C_NO}' + +_batt='%{${fg_bold[$psvar[3]]}%}%2v%{$reset_color%} ' # # Now, the prompt itself # -PROMPT="${_exitcode}${_hour} ${_username}@${_machine}:${_vcs}${_path}$ " +#PROMPT="${_exitcode}${_hour} ${_username}@${_machine}:${_vcs}${_path}$ " +PROMPT="${_exitcode}${_username}@${_machine}:${_vcs}${_path}$ " +RPROMPT="${_batt}" \ No newline at end of file