aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Jorge Bucaran <j@bucaran.me>2016-05-01 18:58:43 +0900
committerGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2016-05-20 21:02:56 +0000
commit14b953e414caf2d52df47cdfffa8cbf3b94ae65d (patch)
treee15a1fe6a03c6867d7410fec046bc734723ae610
parentade6ebf5226e67aa5d5fa64ad56921d69f03f4e9 (diff)
Add missing color definitions to __fish_init_1_50_0 reset. (#2987)
* Add missing color definitions to __fish_init_1_50_0 reset. The values where determined by inspecting the values of: * fish_color_end * fish_color_user * fish_color_host after resetting the color theme via fish_config. * Add documentation for fish_color_user and fish_color_host. (cherry picked from commit 08c29727e01a541f54f9161e08cbb10020d9d456)
-rw-r--r--doc_src/index.hdr.in4
-rw-r--r--share/functions/__fish_config_interactive.fish4
2 files changed, 8 insertions, 0 deletions
diff --git a/doc_src/index.hdr.in b/doc_src/index.hdr.in
index 58b13bb6..c907486d 100644
--- a/doc_src/index.hdr.in
+++ b/doc_src/index.hdr.in
@@ -900,6 +900,10 @@ The following variables are available to change the highlighting colors in fish:
- `fish_color_autosuggestion`, the color used for autosuggestions
+- `fish_color_user`, the color used to print the current username in some of fish default prompts
+
+- `fish_color_host`, the color used to print the current host system in some of fish default prompts
+
Additionally, the following variables are available to change the highlighting in the completion pager:
- `fish_pager_color_prefix`, the color of the prefix string, i.e. the string that is to be completed
diff --git a/share/functions/__fish_config_interactive.fish b/share/functions/__fish_config_interactive.fish
index bca410ac..f8b08de6 100644
--- a/share/functions/__fish_config_interactive.fish
+++ b/share/functions/__fish_config_interactive.fish
@@ -46,8 +46,12 @@ function __fish_config_interactive -d "Initializations that should be performed
set -q fish_color_error; or set -U fish_color_error red --bold
set -q fish_color_escape; or set -U fish_color_escape cyan
set -q fish_color_operator; or set -U fish_color_operator cyan
+ set -q fish_color_end; or set -U fish_color_end green
set -q fish_color_quote; or set -U fish_color_quote brown
set -q fish_color_autosuggestion; or set -U fish_color_autosuggestion 555 yellow
+ set -q fish_color_user; or set -U fish_color_user green
+
+ set -q fish_color_host; or set -U fish_color_host normal
set -q fish_color_valid_path; or set -U fish_color_valid_path --underline
set -q fish_color_cwd; or set -U fish_color_cwd green