Tempted to lean into the "I'm a goddamn wizard" thing
I mean, my solution to problems more often than not involves complicated incantations in strange languages known to few (bash scripts) and trawling through forgotten lore (forum posts from a decade ago about how to fix shit)
All I really need to add is a hat
@troubleMoney
Here's one of my favorite helper bits of shell which has lovely syntax. From inside a function that switches to the next directory on the dirstack that matches the given regex:
dirs -v | sed -ne "1 n
/${1//\//\\/}/ {
s/^\s*\([[:digit:]]*\)\s.*$/\1/
p
q
}"
@frummidge oof, sed in there as well, truly the dark magicks
@troubleMoney my favorite part is the ${1//\//\\/} which is required in order to incant those very same dark mysteries of sed
@troubleMoney
You Put on Your Robe and Wizard Hat...