From bd2bd96135c658d484fa878aa8721987a491aa7c Mon Sep 17 00:00:00 2001 From: "Helmut K. C. Tessarek" Date: Mon, 6 Jun 2016 19:50:09 -0400 Subject: [PATCH] make a few changes for low resolution displays (unicode characters may overlap with the following character) --- themes/Evermeet_lowres_screens.bgptheme | 31 +++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 themes/Evermeet_lowres_screens.bgptheme diff --git a/themes/Evermeet_lowres_screens.bgptheme b/themes/Evermeet_lowres_screens.bgptheme new file mode 100644 index 0000000..3efda9b --- /dev/null +++ b/themes/Evermeet_lowres_screens.bgptheme @@ -0,0 +1,31 @@ +# This theme for gitprompt.sh is designed for dark color schemes +# On lowres screens unicode characters like ✖ require a space after them +# otherwise the following character may overlap with the unicode character + +override_git_prompt_colors() { + GIT_PROMPT_THEME_NAME="Evermeet_lowres_screens" + + GIT_PROMPT_PREFIX="" # start of the git info string + GIT_PROMPT_SUFFIX="" # the end of the git info string + GIT_PROMPT_SEPARATOR="|" # separates each item + + GIT_PROMPT_BRANCH="${Magenta}" # the git branch that is active in the current directory + GIT_PROMPT_STAGED="${Cyan}●" # the number of staged files/directories + GIT_PROMPT_CONFLICTS="${BoldRed}✖ " # the number of files in conflict + GIT_PROMPT_CHANGED="${Cyan}✚ " # the number of changed files + + GIT_PROMPT_UNTRACKED="${Cyan}…" # the number of untracked files/dirs + GIT_PROMPT_STASHED="${Magenta}⚑" # the number of stashed files/dir + GIT_PROMPT_CLEAN="${BoldGreen}✔" # a colored flag indicating a "clean" repo + + GIT_PROMPT_UPSTREAM=" {${Magenta}_UPSTREAM_${ResetColor}}" + + GIT_PROMPT_START_USER="[\[\e[1;32m\]\u\[\e[0m\]\[\e[1;32m\]@\[\e[0m\]\[\e[1;32m\]\h\[\e[0m\] \[\e[1;33m\]\${?}\[\e[0m\] \[\e[1;34m\]\w\[\e[0m\]" + GIT_PROMPT_START_ROOT="[\[\e[1;31m\]\u\[\e[0m\]\[\e[1;31m\]@\[\e[0m\]\[\e[1;31m\]\h\[\e[0m\] \[\e[1;33m\]\${?}\[\e[0m\] \[\e[1;34m\]\w\[\e[0m\]" + GIT_PROMPT_END_USER="]$ " + GIT_PROMPT_END_ROOT="]# " + + GIT_PROMPT_SYMBOLS_NO_REMOTE_TRACKING="⭑ " # This symbol is written after the branch, if the branch is not tracked +} + +reload_git_prompt_colors "Evermeet_lowres_screens"