Created
July 10, 2013 17:44
-
-
Save mattes/5968454 to your computer and use it in GitHub Desktop.
bash helpers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function installed? { command -v $1 >/dev/null 2>&1; } | |
function dir? { [[ -d $1 ]]; } | |
function brew_installed? { brew list | grep -x $1 >/dev/null 2>&1; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment