The article is a nice introduction to fzf- it, and rg are the first things I install on a new machine (after homebrew on Mac)<p>You can combine fzf with all sorts of stuff. Like git via alias for a number of super useful commands (e.g. fuzzy search the last 5 branches I've been on sorted by recency)<p><pre><code> recent => !f() { git reflog | egrep -io "moving from ([^[:space:]]+)" | awk "{ print \$3 }" | awk " !x[\$0]++" | egrep -v "^[a-f0-9]{40}$" | head -n${1:-5}; }; f
recent-checkout => !f() { git checkout $(git recent ${1:-25} | fzf); }; f
</code></pre>
(I use `git recent-checkout` multiple times per day every day. The only potentially tricky thing above is the order preserving dedup which is the `awk " !x[\$0]++"`)<p>Every terminal user (and probably developer) should take the time to learn some bash, basic commands, piping, Ctrl+R (instead of up arrow), navigation shortcuts, rg (and regex), fzf, among others. Huge for productivity.<p>It's honestly a relatively small amount to learn and time to experiment before the vast majority of the things you'll want to do will be easier to write yourself than describe to an LLM.