57e0b57434eb7f3b7d0fe0ca4849478477404e43
- Author
- Roman Kamyk <roman.kamyk@gmail.com>
- Committer
- Roman Kamyk <roman.kamyk@gmail.com>
- Date
Message
Diff
This diff is truncated to protect this page.
1diff --git a/themes/rkj.zsh-theme b/themes/rkj.zsh-theme
2index fa950b255083eee2757ab455ef43caf85129f03f..af178b2b92bf38fdf10d92fef369f7269708e96b 100644
3--- a/themes/rkj.zsh-theme
4+++ b/themes/rkj.zsh-theme
5@@ -6,10 +6,24 @@ function hg_prompt_info {
6 hg prompt --angle-brackets "\
7 <hg:%{$fg[magenta]%}<branch>%{$reset_color%}>\
8 </%{$fg[yellow]%}<tags|%{$reset_color%}, %{$fg[yellow]%}>%{$reset_color%}>\
9-%{$fg[green]%}<status|modified|unknown><update>%{$reset_color%}<
10+%{$fg[red]%}<status|modified|unknown><update>%{$reset_color%}<
11 patches: <patches|join( → )|pre_applied(%{$fg[yellow]%})|post_applied(%{$reset_color%})|pre_unapplied(%{$fg_bold[black]%})|post_unapplied(%{$reset_color%})>>" 2>/dev/null
12 }
13
14+ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[cyan]%}+"
15+ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[yellow]%}✱"
16+ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%}✗"
17+ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[blue]%}➦"
18+ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[magenta]%}✂"
19+ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[grey]%}✈"
20+
21+function mygit() {
22+ ref=$(git symbolic-ref HEAD 2> /dev/null) || return
23+ echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$( git_prompt_status )%{$reset_color%}$ZSH_THEME_GIT_PROMPT_SUFFIX"
24+}
25+