mirror of
https://github.com/athityakumar/colorls.git
synced 2024-09-12 05:31:14 +02:00
Update README with hexstring color example
This commit is contained in:
parent
e345cfca8b
commit
6d0ac10ec5
1 changed files with 9 additions and 1 deletions
10
README.md
10
README.md
|
@ -163,7 +163,9 @@ You can overwrite the existing icons and colors mapping by copying the yaml file
|
|||
|
||||
- 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
|
||||
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
|
||||
```
|
||||
|
||||
Or, using hex color codes:
|
||||
|
||||
```
|
||||
untracked: '#FFFF00'
|
||||
```
|
||||
|
||||
- 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.
|
||||
|
|
Loading…
Reference in a new issue