mirror of
https://github.com/denisidoro/navi.git
synced 2026-01-23 02:14:19 +00:00
Update cheatsheet
This commit is contained in:
parent
21b9e32028
commit
64f6016d6a
1 changed files with 44 additions and 0 deletions
44
docs/cheatsheet/src/example.cheat
Normal file
44
docs/cheatsheet/src/example.cheat
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
% 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue