- cross-posted to:
- hackernews@lemmy.bestiver.se
- cross-posted to:
- hackernews@lemmy.bestiver.se
In my decade-plus of maintaining my dotfiles, I’ve written a lot of little shell scripts. Here’s a big list of my personal favorites.
- Evan Hahn
Some nice ideas in there.
Only the “markdownquote” thing is kinda pointless, especially since they mention it’s mainly used in vim. Because vim can do exactly that already without the need of an external script. Do ctrl+v, mark the lines you want, press “I” (capital i), insert the desired thing, press esc and voila… all the selected lines are now prepended with the desired thing.
edited to make my comment sound less harsh: Nothing wrong with building your own solution if that feels better to oneself though :-)
re:
mksh
I have snippets in my editor for shebangs++. E.g.#!<tab><enter>
nets me#!/bin/bash set -euo pipefail
or
#!/usr/bin/env python3 # pyright: strict
etc
Hmm… I remember seeing this going back long before 2019 and it definitely wasn’t in Russian. Great read though, I can never start reading it without finishing it.
Nice stash.