robbyrussell/oh-my-zsh — pull request #1821 by gokceneraslan (2013-05-15 14:11:44+00:00)
Title: Fix sudo check in case it is aliased

"if [[ -e $( which sudo 2>&1 ) ]]" check fails if sudo is aliased to something else such as "nocorrect sudo". Using "command" eliminates this.