Set selection color to purple

This commit is contained in:
Julian Aron Prenner 2014-01-15 22:41:10 +01:00
parent 21e9615243
commit 444cb894be
2 changed files with 8 additions and 1 deletions

View file

@ -61,7 +61,8 @@ static const wchar_t * const highlight_var[] =
L"fish_color_escape", L"fish_color_escape",
L"fish_color_quote", L"fish_color_quote",
L"fish_color_redirection", L"fish_color_redirection",
L"fish_color_autosuggestion" L"fish_color_autosuggestion",
L"fish_color_selection"
}; };
/* If the given path looks like it's relative to the working directory, then prepend that working directory. */ /* If the given path looks like it's relative to the working directory, then prepend that working directory. */
@ -366,6 +367,8 @@ rgb_color_t highlight_get_color(highlight_spec_t highlight, bool is_background)
// debug( 1, L"%d -> %d -> %ls", highlight, idx, val ); // debug( 1, L"%d -> %d -> %ls", highlight, idx, val );
if (val_wstr.missing()) if (val_wstr.missing())
val_wstr = env_get_string(highlight_var[0]); val_wstr = env_get_string(highlight_var[0]);
@ -389,6 +392,7 @@ rgb_color_t highlight_get_color(highlight_spec_t highlight, bool is_background)
result.set_underline(true); result.set_underline(true);
} }
} }
return result; return result;
} }

View file

@ -117,6 +117,9 @@ function __fish_config_interactive -d "Initializations that should be performed
# Background color for search matches # Background color for search matches
set_default fish_color_search_match --background=purple set_default fish_color_search_match --background=purple
# Background color for selections
set_default fish_color_selection --background=purple
# Pager colors # Pager colors
set_default fish_pager_color_prefix cyan set_default fish_pager_color_prefix cyan
set_default fish_pager_color_completion normal set_default fish_pager_color_completion normal