mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +01:00
[theme] Fix color problem of steeef theme
steeef theme sets colors depending on $TERM, however if %F is
used, it must be closed by %f instead of %{$reset_color%}.
This commit is contained in:
parent
4224c2a1af
commit
41ed88a71a
1 changed files with 3 additions and 2 deletions
|
|
@ -26,12 +26,14 @@ if [[ $TERM = *256color* || $TERM = *rxvt* ]]; then
|
|||
purple="%F{135}"
|
||||
hotpink="%F{161}"
|
||||
limegreen="%F{118}"
|
||||
PR_RST="%f"
|
||||
else
|
||||
turquoise="$fg[cyan]"
|
||||
orange="$fg[yellow]"
|
||||
purple="$fg[magenta]"
|
||||
hotpink="$fg[red]"
|
||||
limegreen="$fg[green]"
|
||||
PR_RST="%{${reset_color}%}"
|
||||
fi
|
||||
|
||||
# enable VCS systems you use
|
||||
|
|
@ -48,7 +50,6 @@ zstyle ':vcs_info:*:prompt:*' check-for-changes true
|
|||
# %a - action (e.g. rebase-i)
|
||||
# %R - repository path
|
||||
# %S - path in the repository
|
||||
PR_RST="%{${reset_color}%}"
|
||||
FMT_BRANCH="(%{$turquoise%}%b%u%c${PR_RST})"
|
||||
FMT_ACTION="(%{$limegreen%}%a${PR_RST})"
|
||||
FMT_UNSTAGED="%{$orange%}●"
|
||||
|
|
@ -96,5 +97,5 @@ function steeef_precmd {
|
|||
add-zsh-hook precmd steeef_precmd
|
||||
|
||||
PROMPT=$'
|
||||
%{$purple%}%n%{$reset_color%} at %{$orange%}%m%{$reset_color%} in %{$limegreen%}%~%{$reset_color%} $vcs_info_msg_0_$(virtualenv_info)%{$reset_color%}
|
||||
%{$purple%}%n${PR_RST} at %{$orange%}%m${PR_RST} in %{$limegreen%}%~${PR_RST} $vcs_info_msg_0_$(virtualenv_info)%{$reset_color%}
|
||||
$ '
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue