mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
Set selection color to purple
This commit is contained in:
parent
21e9615243
commit
444cb894be
2 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue