81f7be2560
It is exactly the same, except I've added the time to the prompt
13 lines
762 B
Bash
13 lines
762 B
Bash
# Based on darkblood, with a clock added
|
|
|
|
# Layout:
|
|
# ┌[user@host] [time] [/dev/tty] [git branch] [error code]
|
|
# └[path]>
|
|
|
|
PROMPT=$'%{$fg[red]%}┌[%{$fg_bold[white]%}%n%{$reset_color%}%{$fg[red]%}@%{$fg_bold[white]%}%m%{$reset_color%}%{$fg[red]%}] %{$fg[red]%}[%{$fg_bold[white]%}%*%{$fg[red]%}] [%{$fg_bold[white]%}/dev/%y%{$reset_color%}%{$fg[red]%}] %{$(git_prompt_info)%}%(?,,%{$fg[red]%}[%{$fg_bold[white]%}%?%{$reset_color%}%{$fg[red]%}])
|
|
%{$fg[red]%}└[%{$fg_bold[white]%}%~%{$reset_color%}%{$fg[red]%}]>%{$reset_color%} '
|
|
PS2=$' %{$fg[red]%}|>%{$reset_color%} '
|
|
|
|
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[red]%}[%{$fg_bold[white]%}"
|
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}%{$fg[red]%}] "
|
|
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}⚡%{$reset_color%}" |