2019-10-20 16:02:28 +02:00
|
|
|
---
|
|
|
|
# The editor to use with 'cheat -e <sheet>'. Defaults to $EDITOR or $VISUAL.
|
2022-08-09 02:14:27 +02:00
|
|
|
editor: EDITOR_PATH
|
2019-10-20 16:02:28 +02:00
|
|
|
|
|
|
|
# Should 'cheat' always colorize output?
|
2022-07-04 22:06:37 +02:00
|
|
|
colorize: false
|
2019-10-20 16:02:28 +02:00
|
|
|
|
|
|
|
# Which 'chroma' colorscheme should be applied to the output?
|
|
|
|
# Options are available here:
|
|
|
|
# https://github.com/alecthomas/chroma/tree/master/styles
|
2022-08-09 01:45:32 +02:00
|
|
|
style: monokai
|
2019-10-20 16:02:28 +02:00
|
|
|
|
|
|
|
# Which 'chroma' "formatter" should be applied?
|
|
|
|
# One of: "terminal", "terminal256", "terminal16m"
|
2022-08-09 01:45:32 +02:00
|
|
|
formatter: terminal256
|
2019-10-20 16:02:28 +02:00
|
|
|
|
2022-08-03 02:27:56 +02:00
|
|
|
# Through which pager should output be piped?
|
2022-08-07 16:16:52 +02:00
|
|
|
# 'less -FRX' is recommended on Unix systems
|
|
|
|
# 'more' is recommended on Windows
|
|
|
|
pager: PAGER_PATH
|
2020-06-26 00:21:51 +02:00
|
|
|
|
2022-08-26 19:11:15 +02:00
|
|
|
# Cheatpaths are paths at which cheatsheets are available on your local
|
|
|
|
# filesystem.
|
2019-10-20 16:02:28 +02:00
|
|
|
#
|
2022-08-26 19:11:15 +02:00
|
|
|
# It is useful to sort cheatsheets into different cheatpaths for organizational
|
|
|
|
# purposes. For example, you might want one cheatpath for community
|
|
|
|
# cheatsheets, one for personal cheatsheets, one for cheatsheets pertaining to
|
|
|
|
# your day job, one for code snippets, etc.
|
2019-10-20 16:02:28 +02:00
|
|
|
#
|
2022-08-26 19:11:15 +02:00
|
|
|
# Cheatpaths are scoped, such that more "local" cheatpaths take priority over
|
|
|
|
# more "global" cheatpaths. (The most global cheatpath is listed first in this
|
|
|
|
# file; the most local is listed last.) For example, if there is a 'tar'
|
|
|
|
# cheatsheet on both global and local paths, you'll be presented with the local
|
|
|
|
# one by default. ('cheat -p' can be used to view cheatsheets from alternative
|
|
|
|
# cheatpaths.)
|
|
|
|
#
|
|
|
|
# Cheatpaths can also be tagged as "read only". This instructs cheat not to
|
|
|
|
# automatically create cheatsheets on a read-only cheatpath. Instead, when you
|
|
|
|
# would like to edit a read-only cheatsheet using 'cheat -e', cheat will
|
|
|
|
# perform a copy-on-write of that cheatsheet from a read-only cheatpath to a
|
|
|
|
# writeable cheatpath.
|
|
|
|
#
|
|
|
|
# This is very useful when you would like to maintain, for example, a
|
|
|
|
# "pristine" repository of community cheatsheets on one cheatpath, and an
|
2023-01-02 02:45:01 +01:00
|
|
|
# editable personal repository of cheatsheets on another cheatpath.
|
2022-08-26 19:11:15 +02:00
|
|
|
#
|
|
|
|
# Cheatpaths can be also configured to automatically apply tags to cheatsheets
|
|
|
|
# on certain paths, which can be useful for querying purposes.
|
|
|
|
# Example: 'cheat -t work jenkins'.
|
|
|
|
#
|
|
|
|
# Community cheatsheets must be installed separately, though you may have
|
|
|
|
# downloaded them automatically when installing 'cheat'. If not, you may
|
|
|
|
# download them here:
|
|
|
|
#
|
|
|
|
# https://github.com/cheat/cheatsheets
|
2019-10-20 16:02:28 +02:00
|
|
|
cheatpaths:
|
2022-08-26 19:11:15 +02:00
|
|
|
# Cheatpath properties mean the following:
|
|
|
|
# 'name': the name of the cheatpath (view with 'cheat -d', filter with 'cheat -p')
|
|
|
|
# 'path': the filesystem path of the cheatsheet directory (view with 'cheat -d')
|
|
|
|
# 'tags': tags that should be automatically applied to sheets on this path
|
|
|
|
# 'readonly': shall user-created ('cheat -e') cheatsheets be saved here?
|
2019-10-20 16:02:28 +02:00
|
|
|
- name: community
|
2020-03-07 02:17:26 +01:00
|
|
|
path: COMMUNITY_PATH
|
2019-10-20 16:02:28 +02:00
|
|
|
tags: [ community ]
|
|
|
|
readonly: true
|
|
|
|
|
|
|
|
# If you have personalized cheatsheets, list them last. They will take
|
|
|
|
# precedence over the more global cheatsheets.
|
|
|
|
- name: personal
|
2020-03-07 02:17:26 +01:00
|
|
|
path: PERSONAL_PATH
|
2019-10-20 16:02:28 +02:00
|
|
|
tags: [ personal ]
|
|
|
|
readonly: false
|
2020-01-20 18:34:48 +01:00
|
|
|
|
2020-03-07 02:17:26 +01:00
|
|
|
# While it requires no configuration here, it's also worth noting that
|
2022-08-26 19:11:15 +02:00
|
|
|
# cheat will automatically append directories named '.cheat' within the
|
2020-03-07 02:17:26 +01:00
|
|
|
# current working directory to the 'cheatpath'. This can be very useful if
|
|
|
|
# you'd like to closely associate cheatsheets with, for example, a directory
|
|
|
|
# containing source code.
|
2020-01-20 18:34:48 +01:00
|
|
|
#
|
|
|
|
# Such "directory-scoped" cheatsheets will be treated as the most "local"
|
2022-08-26 19:11:15 +02:00
|
|
|
# cheatsheets, and will override less "local" cheatsheets. Similarly,
|
2020-01-20 18:34:48 +01:00
|
|
|
# directory-scoped cheatsheets will always be editable ('readonly: false').
|