Update README with hexstring color example

This commit is contained in:
George Pickering 2020-05-28 15:39:03 -04:00
parent e345cfca8b
commit 6d0ac10ec5

View file

@ -163,7 +163,9 @@ You can overwrite the existing icons and colors mapping by copying the yaml file
- To overwrite color mapping : - To overwrite color mapping :
Please have a look at the [list of supported color names](https://github.com/sickill/rainbow#color-list). Let's say that you're using the dark color scheme and would like to change the color of untracked file (`??`) in the `--git-status` flag to yellow. Copy the defaut `dark_colors.yaml` and change it. Please have a look at the [list of supported color names](https://github.com/sickill/rainbow#color-list). You may also use a color hex code as long as it is quoted within the YAML file and prefaced with a `#` symbol.
Let's say that you're using the dark color scheme and would like to change the color of untracked file (`??`) in the `--git-status` flag to yellow. Copy the defaut `dark_colors.yaml` and change it.
```sh ```sh
cp $(dirname $(gem which colorls))/yaml/dark_colors.yaml ~/.config/colorls/dark_colors.yaml` cp $(dirname $(gem which colorls))/yaml/dark_colors.yaml ~/.config/colorls/dark_colors.yaml`
@ -175,6 +177,12 @@ You can overwrite the existing icons and colors mapping by copying the yaml file
untracked: yellow untracked: yellow
``` ```
Or, using hex color codes:
```
untracked: '#FFFF00'
```
- To overwrite icon mapping : - To overwrite icon mapping :
Please have a look at the [list of supported icons](https://nerdfonts.com/). Let's say you want to add an icon for swift files. Copy the default `files.yaml` and change it. Please have a look at the [list of supported icons](https://nerdfonts.com/). Let's say you want to add an icon for swift files. Copy the default `files.yaml` and change it.