navi/docs/navi.cheat
2022-07-28 20:13:23 -03:00

44 lines
723 B
Text

% cheatsheets
# Download default cheatsheets
navi repo add denisidoro/cheats
# Browse for cheatsheet repos
navi repo browse
# Edit main local cheatsheets
f="$(navi info cheats-path)/main.cheat"
[ -f "$f" ] || navi info cheats-example > "$f"
${EDITOR:-nano} "$f"
% config
# Edit config file
f="$(navi info config-path)"
[ -f "$f" ] || navi info config-example > "$f"
${EDITOR:-nano} "$f"
% 3rd-party
# Search using tldr
navi --tldr "<query>"
# Search using cheatsh
navi --cheatsh "<query>"
% widget
# Load shell widget
shell="$(basename $SHELL)"; eval "$(navi widget $shell)"
% help
# Read command-line help text
navi --help
# Read project README.md
navi fn url::open "https://github.com/denisidoro/navi"