mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
changing prompt colors
This commit is contained in:
parent
fbfa9d363b
commit
481a433ef7
1 changed files with 7 additions and 4 deletions
|
|
@ -35,7 +35,10 @@ zstyle ':vcs_info:*:prompt:*' check-for-changes true
|
||||||
# %R - repository path
|
# %R - repository path
|
||||||
# %S - path in the repository
|
# %S - path in the repository
|
||||||
PR_RST="%{${reset_color}%}"
|
PR_RST="%{${reset_color}%}"
|
||||||
FMT_BRANCH="(%{$fg[magenta]%}%b%u%c${PR_RST})"
|
turquoise="%F{81}"
|
||||||
|
orange="%F{166}"
|
||||||
|
purple="%F{135}"
|
||||||
|
FMT_BRANCH="(%{$turquoise%}%b%u%c${PR_RST})"
|
||||||
FMT_ACTION="(%{$fg[green]%}%a${PR_RST})"
|
FMT_ACTION="(%{$fg[green]%}%a${PR_RST})"
|
||||||
FMT_UNSTAGED="%{$fg[yellow]%}●"
|
FMT_UNSTAGED="%{$fg[yellow]%}●"
|
||||||
FMT_STAGED="%{$fg[green]%}●"
|
FMT_STAGED="%{$fg[green]%}●"
|
||||||
|
|
@ -68,9 +71,9 @@ function steeef_precmd {
|
||||||
# check for untracked files or updated submodules, since vcs_info doesn't
|
# check for untracked files or updated submodules, since vcs_info doesn't
|
||||||
if [[ ! -z $(git ls-files --other --exclude-standard 2> /dev/null) ]]; then
|
if [[ ! -z $(git ls-files --other --exclude-standard 2> /dev/null) ]]; then
|
||||||
PR_GIT_UPDATE=1
|
PR_GIT_UPDATE=1
|
||||||
FMT_BRANCH="(%{$fg[magenta]%}%b%u%c%{$fg[red]%}●${PR_RST})"
|
FMT_BRANCH="(%{$turquoise%}%b%u%c%{$fg[red]%}●${PR_RST})"
|
||||||
else
|
else
|
||||||
FMT_BRANCH="(%{$fg[magenta]%}%b%u%c${PR_RST})"
|
FMT_BRANCH="(%{$turquoise%}%b%u%c${PR_RST})"
|
||||||
fi
|
fi
|
||||||
zstyle ':vcs_info:*:prompt:*' formats "${FMT_BRANCH}"
|
zstyle ':vcs_info:*:prompt:*' formats "${FMT_BRANCH}"
|
||||||
|
|
||||||
|
|
@ -82,5 +85,5 @@ function steeef_precmd {
|
||||||
add-zsh-hook precmd steeef_precmd
|
add-zsh-hook precmd steeef_precmd
|
||||||
|
|
||||||
PROMPT=$'
|
PROMPT=$'
|
||||||
%{$fg[magenta]%}%n%{$reset_color%} at %{$fg[yellow]%}%m%{$reset_color%} in %{$fg_bold[green]%}%~%{$reset_color%} $vcs_info_msg_0_
|
%{$purple%}%n%{$reset_color%} at %{$orange%}%m%{$reset_color%} in %{$fg_bold[green]%}%~%{$reset_color%} $vcs_info_msg_0_
|
||||||
$(virtualenv_info)$ '
|
$(virtualenv_info)$ '
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue