docs: note about the $XDG_CONFIG_HOME env

This commit is contained in:
CPea 2023-07-26 21:00:09 +07:00
parent 5f2eb186e2
commit 6d818ce9cb

View File

@ -8,13 +8,13 @@ To get started configuring starship, create one of the following file:
mkdir -p ~/.config && touch ~/.config/starship.toml
```
- `~/.config/starship/config.toml`
- `~/.config/starship/config.toml` or `$XDG_CONFIG_HOME/starship/config.toml` if `$XDG_CONFIG_HOME` is set.
```sh
mkdir -p ~/.config/starship && touch ~/.config/starship/config.toml
```
Note: if you have both files available, the `starship.toml` will take higher priority.
Note: if you have both files available, the `~/.config/starship.toml` will take higher priority.
All configuration for starship is done in this [TOML](https://github.com/toml-lang/toml) file: