mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Theme kaffeefleck renamed into miloshadzic
With the last commit (b323d92) the kaffeefleck theme is compatible
with the miloshadzic theme and both new features are flagable.
This commit is contained in:
parent
b323d92d36
commit
42bb372e64
2 changed files with 16 additions and 24 deletions
|
|
@ -1,20 +0,0 @@
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[green]%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}⚡%{$reset_color%}"
|
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
||||||
|
|
||||||
local directory="%{$fg[cyan]%}%1~%{$reset_color%}"
|
|
||||||
local left_delimiter="%{$fg[red]%}|%{$reset_color%}"
|
|
||||||
local right_delimiter=" %{$fg[cyan]%}⇒%{$reset_color%} "
|
|
||||||
if [[ "$ZSH_THEME_PREFIX_ROOT" != "" && "$UID" -eq 0 ]]; then
|
|
||||||
local root_prefix="%{$fg[red]%}♚ %{$reset_color%}"
|
|
||||||
else
|
|
||||||
local root_prefix=""
|
|
||||||
fi
|
|
||||||
|
|
||||||
PROMPT='${root_prefix}${directory}${left_delimiter}$(git_prompt_info)${right_delimiter}'
|
|
||||||
|
|
||||||
if [ "$ZSH_THEME_USE_RPROMPT" != "" ]; then
|
|
||||||
local return_code="%(?..%{$fg[red]%}%?%{$reset_color%})"
|
|
||||||
RPROMPT='${return_code}'
|
|
||||||
fi
|
|
||||||
|
|
@ -1,8 +1,20 @@
|
||||||
# Yay! High voltage and arrows!
|
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[green]%}"
|
ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[green]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}⚡%{$reset_color%}"
|
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}⚡%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
||||||
|
|
||||||
PROMPT='%{$fg[cyan]%}%1~%{$reset_color%}%{$fg[red]%}|%{$reset_color%}$(git_prompt_info)%{$fg[cyan]%}⇒%{$reset_color%} '
|
local directory="%{$fg[cyan]%}%1~%{$reset_color%}"
|
||||||
|
local left_delimiter="%{$fg[red]%}|%{$reset_color%}"
|
||||||
|
local right_delimiter=" %{$fg[cyan]%}⇒%{$reset_color%} "
|
||||||
|
if [[ "$ZSH_THEME_PREFIX_ROOT" != "" && "$UID" -eq 0 ]]; then
|
||||||
|
local root_prefix="%{$fg[red]%}♚ %{$reset_color%}"
|
||||||
|
else
|
||||||
|
local root_prefix=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
PROMPT='${root_prefix}${directory}${left_delimiter}$(git_prompt_info)${right_delimiter}'
|
||||||
|
|
||||||
|
if [ "$ZSH_THEME_USE_RPROMPT" != "" ]; then
|
||||||
|
local return_code="%(?..%{$fg[red]%}%?%{$reset_color%})"
|
||||||
|
RPROMPT='${return_code}'
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue