Tmux cht.sh

July 5, 2023 ยท View on GitHub

Access cheatsheets easily in a popup in tmux!

FZF Selection Viewing

Requirements

  • curl
  • tmux
  • fzf
  • bash

Installation

Install using TPM

Put this in your configuration file,

set -g @plugin 'kenos1/tmux-cht-sh'

Install manually using git

  1. Clone the repository
git clone https://github.com/kenos1/tmux-cht-sh ~/clone/path
  1. Put this line in your config
run-shell ~/clone/path/tmux-cht-sh.tmux
  1. Restart tmux

Usage

To invoke the cheatsheet use the keybind prefixโ€“S

Configuration

Change the pager by changing your PAGER environment variable. This means adding this to your shell config:

# Bash/ZSH example using less
export PAGER="less"