From 8787179a40266e56eed4bef9ea043a04cc5119ad Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sun, 20 Jun 2021 22:10:52 +0200 Subject: [PATCH] docs: Document fallback colors A third column in the table is overkill given that we have two exceptions. --- doc_src/interactive.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc_src/interactive.rst b/doc_src/interactive.rst index 466efb972..730c975d5 100644 --- a/doc_src/interactive.rst +++ b/doc_src/interactive.rst @@ -104,7 +104,7 @@ Variable Meaning ========================================== ===================================================================== ``fish_color_normal`` default color ``fish_color_command`` commands like echo -``fish_color_keyword`` keywords like if - this falls back on command color if unset +``fish_color_keyword`` keywords like if - this falls back on the command color if unset ``fish_color_quote`` quoted text like "abc" ``fish_color_redirection`` IO redirections like >/dev/null ``fish_color_end`` process separators like ';' and '&' @@ -123,6 +123,8 @@ Variable Meaning ``fish_color_search_match`` history search matches and selected pager items (background only) ========================================== ===================================================================== +If a variable isn't set, fish usually tries ``$fish_color_normal``, except for ``$fish_color_keyword``, where it tries ``$fish_color_command`` first. + .. _variables-color-pager: Pager color variables @@ -162,6 +164,8 @@ Variable Meaning ``fish_pager_color_secondary_description`` description of every second unselected completion ========================================== =========================================================== +When the secondary or selected variables aren't set, the normal variables are used, except for ``$fish_pager_color_selected_background``, where the background of ``$fish_color_search_match`` is tried first. + .. _abbreviations: Abbreviations