@@ -43,21 +43,30 @@ pub fn generate_config_file() -> bat::errors::Result<()> {
46− let default_config = r#"# bat config
46+ let default_config = r#"# This is `bat`s configuration file. Each line either contains a comment or
47+# a command-line option that you want to pass to `bat` by default. You can
48+# run `bat --help` to get a list of all possible configuration options.
48−# Specify desired theme (e.g. "TwoDark"). Issue `bat --list-themes` for a list of all available themes
50+# Specify desired highlighting theme (e.g. "TwoDark"). Run `bat --list-themes`
51+# for a list of all available themes
49#--theme="TwoDark"
52#--theme="TwoDark"
51−# Enable this to use italic text on the terminal (not supported on all terminals):
54+# Enable this to use italic text on the terminal. This is not supported on all
55+# terminal emulators (like tmux, by default):
52#--italic-text=always
56#--italic-text=always
54# Uncomment the following line to disable automatic paging:
58# Uncomment the following line to disable automatic paging:
55#--paging=never
59#--paging=never
57−# Use C++ syntax for .ino files
61+# Uncomment the following line if you are using less version >= 551 and want to
58−#--map-syntax "*.ino:C++"
62+# enable mouse scrolling support in `bat` when running inside tmux. This might
63+# disable text selection, unless you press shift.
64+#--pager="--RAW-CONTROL-CHARS --quit-if-one-screen --mouse"
66+# Syntax mappings: map a certain filename pattern to a language.
67+# Example 1: use the C++ syntax for .ino files
60−# Use ".gitignore"-style highlighting for ".ignore" files
68+# Example 2: Use ".gitignore"-style highlighting for ".ignore" files
69+#--map-syntax "*.ino:C++"
61#--map-syntax ".ignore:Git Ignore"
70#--map-syntax ".ignore:Git Ignore"