Fish Shell: how can I adjust the colors for the autocomplete function?

I started using Fish (and oh-my-fish) a couple of weeks ago, and one of the things that I find somewhat visually tough is the standard background color of the autofill options (see the purple background in the image). I tried looking at the Fish page, but couldn't find anything like it. I would like to know how this background color can be changed. If you're interested, I use LXTerminal in LUbuntu (Ubuntu distribution with LXDE).

enter image description here

+5
source share
2 answers

I found it by checking these documents and doing some trial and error with various environment variables that may be responsible for this function. Environment variable - fish_color_search_match

and the solution changes the variable as:

 $ set fish_color_search_match --background='333' 

Where '333' is the color code. You can also use predefined colors, such as cyan , green , blue , etc., which are available.

Also, I know that maybe this is better for Unix and Linux StackExchange (what could be the reason for the lowering of votes?)

Change: Note that colors will not look right if your terminal does not use 256 colors.

+10
source

it’s more convenient to configure the entire color configuration through the fish web user interface, which can be done from cli:

fish_config colors , which starts the fish configuration server, and there are already many predefined color suggestions

For more information, check out The Fish Shell

0
source

Source: https://habr.com/ru/post/1265787/


All Articles