Skip to content

Instantly share code, notes, and snippets.

@eiri
Created January 14, 2020 15:37
Show Gist options
  • Save eiri/3506a9a8cff9cb6c622c917c3443fe23 to your computer and use it in GitHub Desktop.
Save eiri/3506a9a8cff9cb6c622c917c3443fe23 to your computer and use it in GitHub Desktop.
Using `cheat` - command line helper tool

Cheat

Command line utility cheat https://github.com/cheat/cheat is kind of a man alternative.

Installation & configuration

brew install cheat mkdir -p ~/.config/cheat && cheat --init > ~/.config/cheat/conf.yml

edit to following (a list of avail styles at https://github.com/alecthomas/chroma/tree/master/styles)

---
editor: sublime
colorize: true
style: solarized-dark
formatter: terminal256
cheatpaths:
  - name: community
    path: ~/.dotfiles/cheat/community
    tags: [ community ]
    readonly: true

Install cheatsheets

mkdir -p ~/.dotfiles/cheat && cd ~/.dotfiles/cheat git clone https://github.com/cheat/cheatsheets community

Run cheat

cheat -l cheat docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment