mirror of
https://github.com/ChesterYue/ohmyzsh-theme-passion.git
synced 2026-07-25 14:01:03 +00:00
add git commit
This commit is contained in:
parent
f91f6714f4
commit
d56ad159f3
1 changed files with 13 additions and 4 deletions
|
|
@ -62,9 +62,17 @@ function directory() {
|
||||||
# git
|
# git
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_no_bold[blue]%}git(%{$fg_no_bold[red]%}";
|
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_no_bold[blue]%}git(%{$fg_no_bold[red]%}";
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} ";
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} ";
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_no_bold[blue]%}) %{$fg_no_bold[red]%}⇡⇣";#⬣⎔⬢⬣⇵⇅
|
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_no_bold[blue]%}) %{$fg_no_bold[red]%}⬢";#⬣⎔⬢⬣⇵⇅
|
||||||
# ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_no_bold[blue]%}) 🔥";
|
# ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_no_bold[blue]%}) 🔥";
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_no_bold[blue]%})";#⬡
|
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_no_bold[blue]%}) %{$fg_no_bold[green]%}⬡";#⬡
|
||||||
|
|
||||||
|
# ZSH_THEME_GIT_PROMPT_REMOTE_STATUS_DETAILED=true;
|
||||||
|
# ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE="%{$fg_no_bold[red]%}⇡"
|
||||||
|
# ZSH_THEME_GIT_PROMPT_BEHIND_REMOTE="%{$fg_no_bold[red]%}⇣"
|
||||||
|
ZSH_THEME_GIT_COMMITS_AHEAD_PREFIX="$FG[005]⇡"
|
||||||
|
ZSH_THEME_GIT_COMMITS_AHEAD_SUFFIX=""
|
||||||
|
ZSH_THEME_GIT_COMMITS_BEHIND_PREFIX="$FG[005]⇣"
|
||||||
|
ZSH_THEME_GIT_COMMITS_BEHIND_SUFFIX=""
|
||||||
|
|
||||||
function update_git_status() {
|
function update_git_status() {
|
||||||
GIT_STATUS=$(git_prompt_info);
|
GIT_STATUS=$(git_prompt_info);
|
||||||
|
|
@ -103,7 +111,7 @@ typeset +H my_orange="$FG[214]"
|
||||||
|
|
||||||
# separator dashes size
|
# separator dashes size
|
||||||
function afmagic_dashes {
|
function afmagic_dashes {
|
||||||
local ratio=0.9
|
local ratio=1
|
||||||
echo $((COLUMNS * ratio))
|
echo $((COLUMNS * ratio))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -224,9 +232,10 @@ TRAPALRM() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# prompt
|
# prompt
|
||||||
# PROMPT='$(real_time) $(login_info) $(directory) $(git_status)$(command_status) ';
|
# PROMPT='$(real_time) $(login_info) $(directory) $(git_status)$(command_status) ';
|
||||||
# PROMPT='$(real_time) $(directory) $(git_status)$(command_status) ';
|
# PROMPT='$(real_time) $(directory) $(git_status)$(command_status) ';
|
||||||
PROMPT='$(real_time) $(directory) $(git_status)$(command_status) ';
|
PROMPT='$(real_time) $(directory) $(git_status)$(git_commits_ahead)$(git_commits_behind) $(command_status) ';
|
||||||
# RPROMPT='%{$FG[242]%}%n@%m${color_reset}';
|
# RPROMPT='%{$FG[242]%}%n@%m${color_reset}';
|
||||||
RPROMPT='%{$FG[242]%}%n@%m $(battery_pct_prompt)${color_reset}';
|
RPROMPT='%{$FG[242]%}%n@%m $(battery_pct_prompt)${color_reset}';
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue