Nice Way to Execute a Command Only When A Particular Executable is On Your Path

27 Aug 2011
test -x `which git` && git status

Useful for scripting, eg doing stuff in your .bash_profile

Discuss