bkt
navi
bkt | navi | |
---|---|---|
14 | 52 | |
213 | 14,337 | |
- | - | |
7.3 | 8.3 | |
3 months ago | about 1 month ago | |
Rust | Rust | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
bkt
-
Tip: slow fzf --preview commands can be cached using bkt to make the preview more responsive
Hi, author of bkt here. I use fzf all the time and combine it with bkt to make --preview faster. I hope you find this pattern useful!
-
Passing a command with double quotes to a function
Alternatively, check out bkt (also mine), which is like bash-cache but for subprocesses instead of shell functions.
-
New release of bkt, a subprocess caching utility
Instead, using bkt ensures each request is only sent once and all subsequent calls return locally cached results:
Enjoy! If you find it useful please let me know how you're using it!
-
Escaping (?)
Honestly, any reasonably complex bash script uses (or should be using!) arrays, so just poke around and you'll probably see them. Here's a fairly straightforward script of mine with several arrays: https://github.com/dimo414/bkt/blob/master/benchmark.sh
- Bkt: A subprocess caching utility written in Rust
-
bkt: easily cache the output of command line programs
Glad to hear it! I hope you find it helpful :) If you have a few minutes please share how you're using bkt, it'll help me and others!
- My first Rust project: a caching utility for subprocesses - would appreciate any feedback
navi
-
Show HN: TBMK – A Commands Bookmark for Terminal
I've built something similar for myself (fzf+a bit of shell). But I realized that fzf's history view (with very long history buffer) works much better for my use case.
I still needed something to cover rare commands with dynamic arguments. That got covered by Navi: https://github.com/denisidoro/navi (takes more friction to add new command than with TBMK, but you get much more organized and easier to search tool).
-
Isues with Navi CLI cheat sheets
navi repo add denisidoro/navi-tldr-pages Cloning https://github.com/denisidoro/navi-tldr-pages into /home//.local/share/navi/cheats/tmp... Cloning into '/home//.local/share/navi/cheats/tmp'... remote: Enumerating objects: 1841, done. remote: Counting objects: 100% (1841/1841), done. remote: Compressing objects: 100% (1756/1756), done. remote: Total 1841 (delta 83), reused 1839 (delta 83), pack-reused 0 Receiving objects: 100% (1841/1841), 504.71 KiB | 1.95 MiB/s, done. Resolving deltas: 100% (83/83), done. Hey, listen! navi encountered a problem. Do you think this is a bug? File an issue at https://github.com/denisidoro/navi. Caused by: 0: Failed to import cheatsheets from `denisidoro/navi-tldr-pages` 1: Failed to get cheatsheet files from finder 2: Failed to pass data to finder 3: Unable to prompt cheats to import 4: Broken pipe (os error 32)
- How to store frequently used commands?
-
intelli-shell - Bookmark commands and autocomplete at any time!
Similar projects (in a way): navi
-
How I've improved my Linux Skills
I think navi is a better alternative. You can create custom cheats too.
-
Me relearning git every week
navi might help you with that
- Twitter open sources Navi: High-Performance Machine Learning Serving Server in Rust
- Looking for a snippet tool
-
Script manager?
I like using navi, but idk if you want something that runs in the terminal.
-
229 Linux Commands with Examples
There's also a cli program called tealdeer that does this kind of thing and uses a local cache. And there's a fuzzy search interactive cli cheatsheet program called navi that's also pretty cool (and you can write your own cheatsheets).
What are some alternatives?
comemo - Incremental computation through constrained memoization.
tldr - 📚 Collaborative cheatsheets for console commands
bash-cache - Transparent caching layer for bash functions; particularly useful for functions invoked as part of your prompt.
cheat.sh - the only cheat sheet you need
cached - Rust cache structures and easy function memoization
thefuck - Magnificent app which corrects your previous console command.
zoxide - A smarter cd command. Supports all major shells.
zsh-histdb - A slightly better history for zsh
ctrlg - A command line context switcher, written in Rust :crab:
termgraph - a python command-line tool which draws basic graphs in the terminal
ShellCheck - ShellCheck, a static analysis tool for shell scripts
md2pdf - Markdown to PDF conversion tool