Nice Way to Execute a Command Only When A Particular Executable is On Your Path
test -x `which git` && git status
Useful for scripting, eg doing stuff in your .bash_profile
test -x `which git` && git status
Useful for scripting, eg doing stuff in your .bash_profile