Blog: 2025-03-23
Jump to navigation
Jump to search
After removing a couple abbrs from my fish-functions README that I don't actually use (restore and backup) I looked around my abbrs and recommendations. Turns out I wasn't using cp -> copy, but all the others I actually use in my config. I do have an abbr for lis -> lima-ssh, but it's not in my fish-functions readme.
I used this oneliner to get all the functions from my readme:
grep '### ' README.md | coln 2 | string replace -a '`'
and this to get the abbrs I recommend:
grep 'Recommended abbr' README.md
Then I compared them with comm. It had some confusing seemingly-identical lines. Might need to look into that. But I recommend like 8 abbrs so I ended up just looking at each one at a time.
Putting it all together, I searched up my functions that I had abbrs for:
$ for l in (grep '### ' README.md | coln 2 | string replace -a '`' '') abbr | grep $l end