Skip to content

Instantly share code, notes, and snippets.

View mc7h's full-sized avatar
👨‍💻
clickety-clack-click-clickety-click-clack

Marc mc7h

👨‍💻
clickety-clack-click-clickety-click-clack
View GitHub Profile

Configuring Git sub commands and custom scripts in Nix

I recently pushed a new repo git-ignore. It's a convenient script to fetch and install remote .gitignore files.

In writing the script, I learned something very cool. If you prefix your script with git-, make it executable, and put it in the path, Git will automatically pick it up and make it available as a subcommand.

This means it can be called like so:

❯ git ignore swift

Blogging with Github Gists

As appears customary with these things, my inaugural post will concern the platform underpinning the blog itself. Perhaps, less conventional however, is the platform choice itself: Github Gists.

Not that ridiculous when you think about it (or Pros)

If you're here reading this you probably already know a thing or two about Github Gists. Being relatively sane however, you've probably never considered using them for blogging.

Let me share some of the reasons why it might not be an altogether terrible idea: