|
|
|
@ -10,16 +10,6 @@
|
|
|
|
|
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
setopt prompt_subst
|
|
|
|
|
autoload -Uz vcs_info
|
|
|
|
|
zstyle ':vcs_info:*' stagedstr '%F{black}✚%f'
|
|
|
|
|
zstyle ':vcs_info:git:*' unstagedstr '%F{black}●%f'
|
|
|
|
|
zstyle ':vcs_info:git*' actionformats " %b %F{red}| %a%f"
|
|
|
|
|
zstyle ':vcs_info:git*' formats " %b %c%u%m"
|
|
|
|
|
zstyle ':vcs_info:*' check-for-changes true
|
|
|
|
|
zstyle ':vcs_info:git*+set-message:*' hooks git-untracked git-aheadbehind git-remotebranch git-tagname
|
|
|
|
|
zstyle ':vcs_info:*' enable git
|
|
|
|
|
|
|
|
|
|
### Segment drawing
|
|
|
|
|
# A few utility functions to make it easy and re-usable to draw segmented prompts
|
|
|
|
|
|
|
|
|
@ -33,6 +23,20 @@ CURRENT_BG='NONE'
|
|
|
|
|
LEFT_SEGMENT_SEPARATOR=''
|
|
|
|
|
RIGHT_SEGMENT_SEPARATOR=''
|
|
|
|
|
|
|
|
|
|
################################################################
|
|
|
|
|
# vcs_info settings for git
|
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
|
|
setopt prompt_subst
|
|
|
|
|
autoload -Uz vcs_info
|
|
|
|
|
zstyle ':vcs_info:*' stagedstr ' %F{black}✚%f'
|
|
|
|
|
zstyle ':vcs_info:git:*' unstagedstr ' %F{black}●%f'
|
|
|
|
|
zstyle ':vcs_info:git*' actionformats " %b %F{red}| %a%f"
|
|
|
|
|
zstyle ':vcs_info:git*' formats " %b%c%u%m"
|
|
|
|
|
zstyle ':vcs_info:*' check-for-changes true
|
|
|
|
|
zstyle ':vcs_info:git*+set-message:*' hooks git-untracked git-aheadbehind git-remotebranch git-tagname
|
|
|
|
|
zstyle ':vcs_info:*' enable git
|
|
|
|
|
|
|
|
|
|
################################################################
|
|
|
|
|
# Prompt Segment Constructors
|
|
|
|
|
################################################################
|
|
|
|
|