robbyrussell/oh-my-zsh — pull request #2492 by rikvanderkemp (2014-02-03 10:32:36+00:00)
Title: Added nano plugin

I would love to have this as a plugin in oh-my-zsh. When you need to quickly edit e.g. your hosts file or an apache config it is not unlikely you 'forget' to sudo these files when editing. This 'plugin' checks if the user is in the right group or has owner ship of the file, if not it will place sudo in front of the command. Well it is pretty self-explanatory. :)