File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,15 @@ function get_theme() {
66
66
fi
67
67
}
68
68
69
+ function git_prompt_load_colors() {
70
+ if gp_set_file_var __PROMPT_COLORS_FILE prompt-colors.sh ; then
71
+ # outsource the color defs
72
+ source " $__PROMPT_COLORS_FILE "
73
+ else
74
+ echo 1>&2 " Cannot find prompt-colors.sh!"
75
+ fi
76
+ }
77
+
69
78
function git_prompt_load_theme() {
70
79
get_theme
71
80
local DEFAULT_THEME_FILE=" ${__GIT_PROMPT_DIR} /themes/Default.bgptheme"
@@ -74,6 +83,7 @@ function git_prompt_load_theme() {
74
83
}
75
84
76
85
function git_prompt_list_themes() {
86
+ git_prompt_load_colors
77
87
git_prompt_dir
78
88
get_theme
79
89
@@ -207,11 +217,7 @@ function git_prompt_config() {
207
217
# prompt-colors.sh -- sets generic color names suitable for bash 'PS1' prompt
208
218
# git-prompt-colors.sh -- sets the GIT_PROMPT color scheme, using names from prompt-colors.sh
209
219
210
- if gp_set_file_var __PROMPT_COLORS_FILE prompt-colors.sh ; then
211
- source " $__PROMPT_COLORS_FILE " # outsource the color defs
212
- else
213
- echo 1>&2 " Cannot find prompt-colors.sh!"
214
- fi
220
+ git_prompt_load_colors
215
221
216
222
# source the user's ~/.git-prompt-colors.sh file, or the one that should be
217
223
# sitting in the same directory as this script
You can’t perform that action at this time.
0 commit comments