Instantly surface forgotten tmux shortcuts without leaving the terminal.
Add to ~/.tmux.conf:
set -g @plugin 'aneveux/cheatmux'Press prefix + I to install.
git clone https://github.com/aneveux/cheatmux ~/.tmux/plugins/cheatmuxAdd to ~/.tmux.conf:
run-shell ~/.tmux/plugins/cheatmux/cheatmux.tmuxReload: tmux source ~/.tmux.conf
Press prefix + ? to open the cheatsheet popup.
When fzf is installed, the popup opens in fuzzy search mode. Type to filter shortcuts.
When fzf is not installed, the popup opens in the pager (less) directly.
Custom keybinding:
set -g @cheatmux-key 'C-h'Custom cheatsheet path:
set -g @cheatmux-path '~/my-cheatsheet.md'The plugin looks for a cheatsheet in this order:
@cheatmux-pathtmux option (if set)$XDG_CONFIG_HOME/cheatmux/cheatsheet.md~/.config/cheatmux/cheatsheet.md$XDG_DATA_HOME/cheatmux/cheatsheet.md~/.local/share/cheatmux/cheatsheet.md- Bundled default (plugin directory)
To use your own cheatsheet, create ~/.config/cheatmux/cheatsheet.md or set @cheatmux-path.
## Section Name
prefix + key Description
- tmux 3.2+ (uses
display-popup) - bash 4.0+
- fzf (optional, enables fuzzy search)