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

Let's talk

I'm one of the founders of Venmo. If you liked this essay/experiment -- or didn't -- @ me.