Improved color scheme handling.

- Improve performance significantly in the base case (i.e. when git or something isn't slowing it down anyway).
- Make `bobthefish_display_colors` a non-underscore function. It's meant for public use :)
- Support previewing _different_ color schemes via `bobthefish_display_colors`. Pass a color scheme name, or `--all` to preview everything.
- Make color overrides a bit fishier: use a `bobthefish_colors` function to override color schemes, rather than declaring a whole pile of variables.
- Add support for a base color scheme in `bobthefish_colors`, in case you don't want to override everything.
- Add a deprecation notice with upgrade instructions for users with old-style custom color schemes.
This commit is contained in:
Justin Hileman
2018-03-25 15:50:43 +00:00
parent 3b0c6929ff
commit 5acaae3f62
6 changed files with 847 additions and 797 deletions

View File

@@ -128,8 +128,8 @@ set -g theme_newline_cursor yes
| ![base16][base16] | ![base16-light][base16-light] |
| ![zenburn][zenburn] | ![terminal-dark][terminal-dark] |
You can use the function `__bobthefish_display_colors` to preview the prompts in
the current theme.
You can use the function `bobthefish_display_colors` to preview the prompts in
any color scheme.
Set `theme_color_scheme` in a terminal session or in your fish startup files to
one of the following options to change the prompt colors.