mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-20 04:40:08 +00:00
commit
ca1ccde09f
1 changed files with 20 additions and 0 deletions
20
themes/blinks.zsh-theme
Normal file
20
themes/blinks.zsh-theme
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# https://github.com/blinks zsh theme
|
||||||
|
|
||||||
|
function _prompt_char() {
|
||||||
|
if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then
|
||||||
|
echo "%{%F{blue}%}±%{%f%k%b%}"
|
||||||
|
else
|
||||||
|
echo ' '
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
ZSH_THEME_GIT_PROMPT_PREFIX=" [%{%B%F{blue}%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{%f%k%b%K{black}%B%F{green}%}]"
|
||||||
|
ZSH_THEME_GIT_PROMPT_DIRTY=" %{%F{red}%}*%{%f%k%b%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
||||||
|
|
||||||
|
PROMPT='%{%f%k%b%}
|
||||||
|
%{%K{black}%B%F{green}%}%n%{%B%F{blue}%}@%{%B%F{cyan}%}%m%{%B%F{green}%} %{%b%F{yellow}%K{black}%}%~%{%B%F{green}%}$(git_prompt_info)%E%{%f%k%b%}
|
||||||
|
%{%K{black}%}$(_prompt_char)%{%K{black}%} %#%{%f%k%b%} '
|
||||||
|
|
||||||
|
RPROMPT='!%{%B%F{cyan}%}%!%{%f%k%b%}'
|
Loading…
Reference in a new issue