mirror of
https://github.com/denisidoro/navi
synced 2024-11-28 14:30:22 +00:00
81cd721b76
Fixes #759
44 lines
723 B
Text
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"
|