mirror of
https://github.com/sharkdp/bat.git
synced 2025-04-14 23:00:37 +01:00
Add mapping for Unix mail spool (#2156)
This commit is contained in:
parent
4291fd5c65
commit
3ae05333b0
@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
- Mapped clang-format config file (.clang-format) to YAML syntax (@TruncatedDinosour)
|
- Mapped clang-format config file (.clang-format) to YAML syntax (@TruncatedDinosour)
|
||||||
- log syntax: improved handling of escape characters in double quoted strings. See #2123 (@keith-hall)
|
- log syntax: improved handling of escape characters in double quoted strings. See #2123 (@keith-hall)
|
||||||
|
- Associate `/var/spool/mail/*` and `/var/mail/*` with the `Email` syntax. See #2156 (@cyqsimon)
|
||||||
- Added cmd-help syntax to scope --help messages. See #2148 (@victor-gp)
|
- Added cmd-help syntax to scope --help messages. See #2148 (@victor-gp)
|
||||||
|
|
||||||
## Themes
|
## Themes
|
||||||
|
@ -120,6 +120,11 @@ impl<'a> SyntaxMapping<'a> {
|
|||||||
mapping.insert(glob, MappingTarget::MapTo("INI")).unwrap();
|
mapping.insert(glob, MappingTarget::MapTo("INI")).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// unix mail spool
|
||||||
|
for glob in &["/var/spool/mail/*", "/var/mail/*"] {
|
||||||
|
mapping.insert(glob, MappingTarget::MapTo("Email")).unwrap()
|
||||||
|
}
|
||||||
|
|
||||||
// pacman hooks
|
// pacman hooks
|
||||||
mapping
|
mapping
|
||||||
.insert("*.hook", MappingTarget::MapTo("INI"))
|
.insert("*.hook", MappingTarget::MapTo("INI"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user