Add command_exists function to base.plugin from http://stackoverflow.com/questions/592620/check-if-a-program-exists-from-a-bash-script:
Add command_exists function to base.plugin from http://stackoverflow.com/questions/592620/check-if-a-program-exists-from-a-bash-script:

prajnak/bash_it