Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,25 @@ Usage: dust --dim Displays dimmer bars

## Config file

Dust has a config file where the above options can be set.
Dust has a config file for persistent options.
Either: `$XDG_CONFIG_HOME/dust/config.toml` (falling back to
`~/.config/dust/config.toml`) or `~/.dust.toml`
```
$ cat ~/.config/dust/config.toml
reverse=true
limit-filesystem=true
```
Keys use the long flag name in kebab-case. See [config/config.toml](config/config.toml) for a fuller sample.
Keys use kebab-case. Most match the long flag name, but the following options
use different names in the config file:

| Command-line flag | Config key |
| --- | --- |
| `--full-paths` | `display-full-paths` |
| `--apparent-size` | `display-apparent-size` |
| `--no-percent-bars` | `no-bars` |
| `--no-progress` | `disable-progress` |

See [config/config.toml](config/config.toml) for a fuller sample.

## Alternatives

Expand Down