diff options
author | sharkdp <davidpeter@web.de> | 2021-01-10 16:18:33 +0100 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2021-01-10 22:24:32 +0100 |
commit | 0e2bef3b79bdb6a6ac537ea401cd2dfe813d9735 (patch) | |
tree | bc102bb671f8c12617f0f78805a694c837376c42 | |
parent | 221c9815a51addc1a37618392e9c2cc6ca10c047 (diff) |
Fix minor mistakes in --map-syntax documentation
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -481,7 +481,7 @@ You can add new (or change existing) file name patterns using the `--map-syntax` command line option. The option takes an argument of the form `pattern:syntax` where `pattern` is a glob pattern that is matched against the file name and the absolute file path. The `syntax` part is the full name of a supported language -(use `bat --list-languages` for an overview)full . +(use `bat --list-languages` for an overview). Note: You probably want to use this option as an entry in `bat`s configuration file instead of passing it on the command line (see below). @@ -499,7 +499,7 @@ Example: To open all files called `.ignore` (exact match) with the "Git Ignore" Example: To open all `.conf` files in subfolders of `/etc/apache2` with the "Apache Conf" syntax, use (this mapping is already built in): ```bash --map-syntax='/etc/apache2/**/*.conf:Apache Conf' +--map-syntax='/etc/apache2/**/*.conf:Apache Conf' ``` ### Using a different pager |