1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-09 21:41:31 +01:00
dotfiles/themes/brethil-minimal.zsh-theme
bretello 7312c868b3
zsh: theme: avoid using functions where possible
includes fix for ohmyzsh's breaking change in ec1afe9d (async prompt)
2024-04-06 21:24:45 +02:00

11 lines
537 B
Bash

# vim:ft=zsh ts=2 sw=2 sts=2
local ret_status="%(?:%{$fg_bold[green]%}➜%{$reset_color%}:%{$fg[red]%}➜%{$reset_color%})"
local user="%(#:root@:)"
PROMPT='[%{$fg[red]%}${user}%M%{$reset_color%}][:%{$fg[green]%}%c%{$reset_color%}]$(git_prompt_info) ${ret_status} '
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[yellow]%}git:("
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg[yellow]%})%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[white]%} %{$fg[red]%}✗%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[white]%} %{$fg[green]%}√%{$reset_color%}"