From 4e6a3c5794ee1d4a363a9ba51f06a5248bbb2eef Mon Sep 17 00:00:00 2001 From: Konstantin Gredeskoul Date: Wed, 30 Dec 2020 03:24:56 -0800 Subject: [PATCH] Fixing colors + sedx --- colorschemes/dark.colorscheme.bash | 18 +++++++++++++++--- colorschemes/light.colorscheme.bash | 2 +- themes/powerline/powerline.helpers.bash | 4 ++-- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/colorschemes/dark.colorscheme.bash b/colorschemes/dark.colorscheme.bash index 1af18f4d..d456ccd1 100644 --- a/colorschemes/dark.colorscheme.bash +++ b/colorschemes/dark.colorscheme.bash @@ -2,9 +2,21 @@ CLOCK_THEME_PROMPT_COLOR=124 CWD_THEME_PROMPT_COLOR=311 HOST_THEME_PROMPT_COLOR=6 SCM_THEME_PROMPT_CLEAN_COLOR=4 -SCM_THEME_PROMPT_DIRTY_COLOR=202 -SCM_THEME_PROMPT_STAGED_COLOR=30 -SCM_THEME_PROMPT_UNSTAGED_COLOR=129 +SCM_THEME_PROMPT_STAGED_COLOR=2563 +SCM_THEME_PROMPT_DIRTY_COLOR=2561 +SCM_THEME_PROMPT_UNSTAGED_COLOR=209 USER_INFO_THEME_PROMPT_COLOR=196 GO_THEME_PROMPT_COLOR=19 POWERLINE_GO_COLOR=33 + + +#CLOCK_THEME_PROMPT_COLOR=214 +#CWD_THEME_PROMPT_COLOR=123 +#HOST_THEME_PROMPT_COLOR=9 +#RUBY_THEME_PROMPT_COLOR=202 +#SCM_THEME_PROMPT_CLEAN_COLOR=560 +#SCM_THEME_PROMPT_STAGED_COLOR=1251 +#SCM_THEME_PROMPT_UNSTAGED_COLOR=209 +#USER_INFO_THEME_PROMPT_COLOR=46 +#GO_THEME_PROMPT_COLOR=33 +#POWERLINE_GO_COLOR=33 diff --git a/colorschemes/light.colorscheme.bash b/colorschemes/light.colorscheme.bash index 76dde728..99b3877f 100644 --- a/colorschemes/light.colorscheme.bash +++ b/colorschemes/light.colorscheme.bash @@ -5,7 +5,7 @@ RUBY_THEME_PROMPT_COLOR=202 SCM_THEME_PROMPT_CLEAN_COLOR=560 SCM_THEME_PROMPT_DIRTY_COLOR=220 SCM_THEME_PROMPT_STAGED_COLOR=1251 -SCM_THEME_PROMPT_UNSTAGED_COLOR=1256 +SCM_THEME_PROMPT_UNSTAGED_COLOR=209 USER_INFO_THEME_PROMPT_COLOR=46 GO_THEME_PROMPT_COLOR=33 POWERLINE_GO_COLOR=33 diff --git a/themes/powerline/powerline.helpers.bash b/themes/powerline/powerline.helpers.bash index 477d210f..d15cc23d 100644 --- a/themes/powerline/powerline.helpers.bash +++ b/themes/powerline/powerline.helpers.bash @@ -104,7 +104,7 @@ function powerline.prompt.git.default() { if [[ $os == 'Darwin' ]]; then w=$(stty -a 2>/dev/null | grep columns | awk '{print $6}'); else - w=$(stty -a 2>/dev/null | grep columns | awk '{print $7}' | sedx 's/;//g'); + w=$(stty -a 2>/dev/null | grep columns | awk '{print $7}' | sed -E 's/;//g'); fi printf -- "%d" ${w} } @@ -262,4 +262,4 @@ function powerline.prompt.alternative-symbols() { export SHLVL_THEME_PROMPT_CHAR="ⓢ " export COMMAND_NUMBER_THEME_PROMPT_CHAR="↳" -} \ No newline at end of file +}