aboutsummaryrefslogtreecommitdiffstats
path: root/zsh/zshrc
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/zshrc')
-rw-r--r--zsh/zshrc19
1 files changed, 17 insertions, 2 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index dc0c250..528bf68 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -1,4 +1,19 @@
-PROMPT='%F{red}%B┌[%b%F{green}%m%F{red}%B@%b%F{cyan}%n %F{blue}%~%F{red}%B]
-%F{red}└>%b%f '
+setopt PROMPT_SUBST
autoload -U colors && colors
+
+autoload -Uz vcs_info
+precmd() { vcs_info }
+
+zstyle ':vcs_info:git:*' formats ' %F{yellow}[%F{cyan}%b %c%F{blue}%a%F{yellow}]'
+zstyle ':vcs_info:git:*' actionformats ' %F{yellow}[%F{cyan}%b %c%F{blue}%a%F{yellow}]'
+
+zstyle ':vcs_info:*+set-message:*' hooks git-untracked git-dirty
+
+zstyle ':vcs_info:git:*' check-for-changes true
+zstyle ':vcs_info:git:*' stagedstr '%F{green}✓%f'
+zstyle ':vcs_info:git:*' unstagedstr '%F{red}✗%f'
+zstyle ':vcs_info:git:*' aheadstr '%F{blue}⬆%f'
+zstyle ':vcs_info:git:*' behindstr '%F{yellow}⬇%f'
+PROMPT='%F{red}╭──[%F{green}%m%F{red}@%F{blue}%n%F{red}] %F{magenta}%~%f${vcs_info_msg_0_}%F{red}
+╰─>%f '