dotfiles

My dotfiles for Arch Linux
git clone git@git.janispagel.de:dotfiles.git
Log | Files | Refs | README

commit 1fc9c2b8584c8480cc3c0304f196df0aaa08f6af
parent f8efe91931907e4c1cd747bb237d3e82a9c47d1b
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Fri, 11 Sep 2020 13:11:58 +0200

Use colors for git prompt

Diffstat:
Mzsh/zshrc | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/zsh/zshrc b/zsh/zshrc @@ -117,10 +117,10 @@ GIT_PROMPT_PREFIX="[" GIT_PROMPT_SUFFIX="]" GIT_PROMPT_AHEAD="ANUM" # A"NUM" - ahead by "NUM" commits GIT_PROMPT_BEHIND="BNUM" # B"NUM" - behind by "NUM" commits -GIT_PROMPT_MERGING="!" # merge conflict -GIT_PROMPT_UNTRACKED="++" # untracked files -GIT_PROMPT_MODIFIED="+" # tracked files modified -GIT_PROMPT_STAGED="->" # staged changes present = ready for "git push" +GIT_PROMPT_MERGING="%F{1}!%f" # merge conflict +GIT_PROMPT_UNTRACKED="%F{1}++%f" # untracked files +GIT_PROMPT_MODIFIED="%F{3}+%f" # tracked files modified +GIT_PROMPT_STAGED="%F{2}->%f" # staged changes present = ready for "git push" # Right prompt with exit status of previous command if not successful # Also show background process, git information and current dir