Update Nano Mac Os

How to update nano on mac

homebrew-dupes: These formulae duplicate software provided by OS X, though may provide more recent or bugfix versions.

To install:

brew tap homebrew/dupes
brew install nano