dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit eab29b97c47f289351402e2c785f04ac03519fd9
parent 0bbb0e38eb290defcbcd7a3123bd2bd3c93c155f
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Thu, 24 Jan 2019 21:55:51 +0100

Change right prompt color scheme

Diffstat:
Mzsh/zsh_functions | 2+-
Mzsh/zshrc | 10+++++-----
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/zsh/zsh_functions b/zsh/zsh_functions @@ -64,7 +64,7 @@ git_prompt_string() { local git_where="$(parse_git_branch)" # If inside a Git repository, print its branch and state - [ -n "$git_where" ] && echo "$GIT_PROMPT_SYMBOL$(parse_git_state)$GIT_PROMPT_PREFIX%{$fg[yellow]%}${git_where#(refs/heads/|tags/)}$GIT_PROMPT_SUFFIX" + [ -n "$git_where" ] && echo "$GIT_PROMPT_SYMBOL$(parse_git_state)$GIT_PROMPT_PREFIX%{$fg[green]%}${git_where#(refs/heads/|tags/)}$GIT_PROMPT_SUFFIX" # If not inside the Git repo, do nothing [ ! -n "$git_where" ] && echo "" diff --git a/zsh/zshrc b/zsh/zshrc @@ -100,16 +100,16 @@ colors ###################### # set left prompt -PROMPT='%b%# %E' +PROMPT='%b%{$fg[green]%}%# %{$reset_color%}%E' ###### # This whole git prompt stuff was taken from Manjaro's zsh setup, slightly modified ###### # Modify the colors and symbols in these variables as desired. -GIT_PROMPT_SYMBOL="%{$fg[blue]%}±" # plus/minus - clean repo -GIT_PROMPT_PREFIX="%{$fg[white]%}[%{$reset_color%}" -GIT_PROMPT_SUFFIX="%{$fg[white]%}]%{$reset_color%}" +GIT_PROMPT_SYMBOL="%{$fg[green]%}±" # plus/minus - clean repo +GIT_PROMPT_PREFIX="%{$fg[green]%}[%{$reset_color%}" +GIT_PROMPT_SUFFIX="%{$fg[green]%}]%{$reset_color%}" GIT_PROMPT_AHEAD="%{$fg[green]%}ANUM%{$reset_color%}" # A"NUM" - ahead by "NUM" commits GIT_PROMPT_BEHIND="%{$fg[red]%}BNUM%{$reset_color%}" # B"NUM" - behind by "NUM" commits GIT_PROMPT_MERGING="%{$fg_bold[magenta]%}!%{$reset_color%}" # merge conflict @@ -118,7 +118,7 @@ GIT_PROMPT_MODIFIED="%{$fg_bold[yellow]%}+%{$reset_color%}" # tracked files GIT_PROMPT_STAGED="%{$fg_bold[green]%}->%{$reset_color%}" # staged changes present = ready for "git push" # Right prompt with exit status of previous command if not successful -RPROMPT='$(git_prompt_string) %{$fg[red]%}%(?..[%?])%{$reset_color%} (%*)' +RPROMPT='$(git_prompt_string) %{$fg[red]%}%(?..[%?])%{$reset_color%} %{$fg[green]%}(%*)%{$reset_color%}' ################# ##### Misc ######