1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-02-22 04:48:48 +00:00

Merge pull request #3098 from adamperkowski/bat_config_dir_docs

📔 docs: mention `BAT_CONFIG_DIR` in the README
This commit is contained in:
Keith Hall 2024-11-13 21:37:40 +02:00 committed by GitHub
commit 07554b0c1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -695,10 +695,11 @@ on your operating system. To get the default path for your system, call
bat --config-file bat --config-file
``` ```
Alternatively, you can use the `BAT_CONFIG_PATH` environment variable to point `bat` to a Alternatively, you can use `BAT_CONFIG_PATH` or `BAT_CONFIG_DIR` environment variables to point `bat`
non-default location of the configuration file: to a non-default location of the configuration file or the configuration directory respectively:
```bash ```bash
export BAT_CONFIG_PATH="/path/to/bat.conf" export BAT_CONFIG_PATH="/path/to/bat/bat.conf"
export BAT_CONFIG_DIR="/path/to/bat"
``` ```
A default configuration file can be created with the `--generate-config-file` option. A default configuration file can be created with the `--generate-config-file` option.