on master help sign in
Resolving requested changes
commitf8d39d5624b6affc376ba2bc142841e8337aac65 authorRicky <Ricky@Hosfelt.io> dateWed 7 Nov 2018, 16:31 (8 years ago) parent9998e2e
1 file changed+18−11
README.md+18−11
README.md+18−11
@@ -327,26 +327,33 @@ If scrolling still doesn't work for you, you can try to pass the `-S` option in
327327
328328#### Location
329329
330−The default location is operation system/install location dependent (macOS: `Users/<your_user>/Library/Preferences/bat/config`). To get the path of the current location use `bat --config-file` to print out the location of the current config file path.
330+The default location is OS/install location dependent to get the path for your operating system use `bat --config-file` to print out the location of the current config file path.
331331
332−You can change this with the `$BAT_CONFIG_PATH` enviroment variable.
332+You can use the `$BAT_CONFIG_PATH` environment variable to point `bat` to a non-default location of the configuration file like so:
333+```bash
334+export BAT_CONFIG_PATH=$HOME/code/setup/bat.conf
335+```
333336
334337#### Format
335338
336339The config file is formatted just as you would pass arguments to the CLI. Here is an example:
337340
338−```
339−# Make sure that the pager gets executed
340−--paging=always
341−
342−# Always enable coloring (will send ANSI codes to pipe commands)
343−--color=always
344−
341+```bash
345342# Set the theme to "TwoDark"
346343--theme="TwoDark"
347344
348−# Do not display line numbers or borders
349−--decorations=never
345+# Show line numbers, Git modifications and file header (but no grid)
346+--style="numbers,changes,header"
347+
348+# Add mouse scrolling support in less (does not work with older
349+# versions of "less")
350+--pager="less -FR"
351+
352+# Use C++ syntax (instead of C) for .h header files
353+--map-syntax h:cpp
354+
355+# Use "gitignore" highlighting for ".ignore" files
356+--map-syntax .ignore:.gitignore
350357```
351358
352359## Using `bat` on Windows