Point to delta in usage-with-git section of README

This commit is contained in:
Dan Davison authored and David Peter committed 2019-10-30 19:47:37 +01:00
1 parent 0a42d2b897
commit 3f37d292ec
1 file changed
+3 -1
+3 -1
View File
@@ -122,7 +122,7 @@ tail -f /var/log/pacman.log | bat --paging=never -l log
Note that we have to switch off paging in order for this to work. We have also specified the syntax Note that we have to switch off paging in order for this to work. We have also specified the syntax
explicitly (`-l log`), as it can not be auto-detected in this case. explicitly (`-l log`), as it can not be auto-detected in this case.
#### `git show` #### `git`
You can combine `bat` with `git show` to view an older version of a given file with proper syntax You can combine `bat` with `git show` to view an older version of a given file with proper syntax
highlighting: highlighting:
@@ -130,6 +130,8 @@ highlighting:
git show v0.6.0:src/main.rs | bat -l rs git show v0.6.0:src/main.rs | bat -l rs
``` ```
Note that syntax highlighting within diffs is currently not supported. If you are looking for this, check out [delta](https://github.com/dandavison/delta).
#### `xclip` #### `xclip`
The line numbers and Git modification markers in the output of `bat` can make it hard to copy The line numbers and Git modification markers in the output of `bat` can make it hard to copy