From 6fb3fbfa7c481e0b0368d44aa9e6812f394e49d9 Mon Sep 17 00:00:00 2001 From: Christian Baer Date: Mon, 4 Jan 2021 21:32:48 +0100 Subject: [PATCH] Updated zsh git prompt --- .config/zsh/lib/30-rprompt.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/zsh/lib/30-rprompt.zsh b/.config/zsh/lib/30-rprompt.zsh index 66734a8..1e7b35b 100644 --- a/.config/zsh/lib/30-rprompt.zsh +++ b/.config/zsh/lib/30-rprompt.zsh @@ -7,8 +7,8 @@ autoload -U colors && colors # Enable colors in prompt # Modify the colors and symbols in these variables as desired. GIT_PROMPT_SYMBOL="%{$fg[blue]%}±" -GIT_PROMPT_PREFIX="%{$fg[green]%}[%{$reset_color%}" -GIT_PROMPT_SUFFIX="%{$fg[green]%}]%{$reset_color%}" +GIT_PROMPT_PREFIX="%{$fg[green]%}(%{$reset_color%}" +GIT_PROMPT_SUFFIX="%{$fg[green]%})%{$reset_color%}" GIT_PROMPT_AHEAD="%{$fg[red]%}ANUM%{$reset_color%}" GIT_PROMPT_BEHIND="%{$fg[cyan]%}BNUM%{$reset_color%}" GIT_PROMPT_MERGING="%{$fg[magenta]%}⚡︎%{$reset_color%}" @@ -67,4 +67,4 @@ git_prompt_string() { } # Set the right-hand prompt -RPS1='$(git_prompt_string)' \ No newline at end of file +RPS1='$(git_prompt_string)'