Knowledge Base

Preserving for the future: Shell scripts, AoC, and more

Updating my cgit links for Luanti projects

I decided that my thousands of Luanti-related repositories should be stored in their own special spot, er, heading in my cgit, visible in the whole list only on the last page. I guess I can't link directly to just the heading in the whole list cgit, but at least you can view only those repos if desired with the first link.

To adjust my recent blog posts that pointed to the old locations, I had to use some regex.

vi $( grep -l -rI -P '(?<=\(\/cgit\/)[^\)]+' posts/2025 )

This found any link that starts with /cgit/ so I can go edit it.

References

Weblinks

  1. Regex Tutorial - Lookahead and Lookbehind Zero-Length Assertions

Comments