Pimping macOS default nano, syntax highlighting and more

Recently I was editing a php file on a Linux server and I noticed it had some basic highlighting. The reason why I noticed is because on macOS everything is always in the default terminal color without highlighting.

Turns out you can enable it for macOS as well with little effort!

Some examples, to convince you, if you haven't been already

Default macOS nano:

With the updated nano:

Enough showing off, how do I get it?

Assuming you know what homebrew is and have it installed & set up correctly; it's really just a matter of running the following 2 commands, not much else to it!

brew install nano
echo "include /usr/local/share/nano/*.nanorc" > ~/.nanorc

Enjoy 🍻