Fixing colors + sedx

pull/1944/head
Konstantin Gredeskoul 2020-12-30 03:24:56 -08:00
parent b49973ec46
commit 4e6a3c5794
No known key found for this signature in database
GPG Key ID: F64DECB748F527EB
3 changed files with 18 additions and 6 deletions

View File

@ -2,9 +2,21 @@ CLOCK_THEME_PROMPT_COLOR=124
CWD_THEME_PROMPT_COLOR=311 CWD_THEME_PROMPT_COLOR=311
HOST_THEME_PROMPT_COLOR=6 HOST_THEME_PROMPT_COLOR=6
SCM_THEME_PROMPT_CLEAN_COLOR=4 SCM_THEME_PROMPT_CLEAN_COLOR=4
SCM_THEME_PROMPT_DIRTY_COLOR=202 SCM_THEME_PROMPT_STAGED_COLOR=2563
SCM_THEME_PROMPT_STAGED_COLOR=30 SCM_THEME_PROMPT_DIRTY_COLOR=2561
SCM_THEME_PROMPT_UNSTAGED_COLOR=129 SCM_THEME_PROMPT_UNSTAGED_COLOR=209
USER_INFO_THEME_PROMPT_COLOR=196 USER_INFO_THEME_PROMPT_COLOR=196
GO_THEME_PROMPT_COLOR=19 GO_THEME_PROMPT_COLOR=19
POWERLINE_GO_COLOR=33 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

View File

@ -5,7 +5,7 @@ RUBY_THEME_PROMPT_COLOR=202
SCM_THEME_PROMPT_CLEAN_COLOR=560 SCM_THEME_PROMPT_CLEAN_COLOR=560
SCM_THEME_PROMPT_DIRTY_COLOR=220 SCM_THEME_PROMPT_DIRTY_COLOR=220
SCM_THEME_PROMPT_STAGED_COLOR=1251 SCM_THEME_PROMPT_STAGED_COLOR=1251
SCM_THEME_PROMPT_UNSTAGED_COLOR=1256 SCM_THEME_PROMPT_UNSTAGED_COLOR=209
USER_INFO_THEME_PROMPT_COLOR=46 USER_INFO_THEME_PROMPT_COLOR=46
GO_THEME_PROMPT_COLOR=33 GO_THEME_PROMPT_COLOR=33
POWERLINE_GO_COLOR=33 POWERLINE_GO_COLOR=33

View File

@ -104,7 +104,7 @@ function powerline.prompt.git.default() {
if [[ $os == 'Darwin' ]]; then if [[ $os == 'Darwin' ]]; then
w=$(stty -a 2>/dev/null | grep columns | awk '{print $6}'); w=$(stty -a 2>/dev/null | grep columns | awk '{print $6}');
else 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 fi
printf -- "%d" ${w} printf -- "%d" ${w}
} }