mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Added theme "koraktor"
This commit is contained in:
parent
757fa3314d
commit
296ff55550
1 changed files with 28 additions and 0 deletions
28
themes/koraktor.zsh-theme
Normal file
28
themes/koraktor.zsh-theme
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
+vi-git-submodule-unstaged () {
|
||||
if ( cd $hook_com[base]; `git submodule status | grep -cqv "^ "` ) ; then
|
||||
hook_com[unstaged]=${hook_com[unstaged]:-"%{$FG[202]%}"}
|
||||
hook_com[unstaged]+='ɱ'
|
||||
fi
|
||||
}
|
||||
|
||||
+vi-git-clean () {
|
||||
if [[ -z ${hook_com[staged]} ]] && [[ -z ${hook_com[unstaged]} ]] ; then
|
||||
hook_com[staged]="%{$FG[034]%}✓"
|
||||
fi
|
||||
hook_com[staged]=" ${hook_com[staged]}"
|
||||
}
|
||||
|
||||
autoload -Uz vcs_info
|
||||
zstyle ':vcs_info:*' check-for-changes true
|
||||
zstyle ':vcs_info:*' unstagedstr "%{$FG[202]%}✻"
|
||||
zstyle ':vcs_info:*' stagedstr "%{$FG[118]%}✚"
|
||||
zstyle ':vcs_info:*' actionformats "%{$FG[064]%}±%{$FG[235]%}[%{$FG[088]%}%b%{$FG[235]%}|%{$FG[033]%}%a%c%u%{$FG[235]%}] "
|
||||
zstyle ':vcs_info:*' formats "%{$FG[064]%}±%{$FG[235]%}[%{$FG[088]%}%b%c%u%{$FG[235]%}] "
|
||||
zstyle ':vcs_info:*' enable git
|
||||
zstyle ':vcs_info:git*+set-message:*' hooks git-submodule-unstaged git-clean
|
||||
|
||||
precmd () {
|
||||
vcs_info
|
||||
}
|
||||
|
||||
PROMPT='%{$FG[088]%}◷%{$FG[006]%}%T %{$FG[024]%}%3~ $vcs_info_msg_0_%{$reset_color%}'
|
||||
Loading…
Add table
Add a link
Reference in a new issue