Skip to content

bat Snippets

Terminal window
# See supported languages
bat -L
# View todo file in todo.txt format
bat Todo-for-me.txt -l todo.txt
# Highlight specific links
bat -H 10:20 my_log_file.log
# Diff - Check for differences in file with respect to git index
bat --diff file_that_changed.md