terminal(2/0)

Install a friendly terminal shell

If you’re unfamiliar with a terminal command line or tired of using bash, you’ll benefit from installing another shell. There are a number of options, but the fish shell is the simplest to install and use. Simple doesn’t mean basic - it’s elegant and wonderful. Install Fish First, install fish. On MacOs the command is: brew install fish ℹ️ For an exhaustive install manual, see this cookbook. Jorge's cookbook…

Replace text across all content

As my content grows, so does my need to make adjustments across dozens of files. I’m familiar with grep and it’s successor, ripgrep, and I’m familiar with sed, but I can never quite remember how to make replacements in-place. Here’s how: rg -il '< backref' | xargs sed -i "" -e 's/backref "\(.*\)"/backref src="\1"/g' First, you retrieve the relative file path of the files you want to change. Technically, you could run the command against every file and it would only operate on content that matches, but there’s no reason to be so inefficient.…