diff --git a/recipes/brew b/recipes/brew
index 9ad496b..86f72ef 100644
--- a/recipes/brew
+++ b/recipes/brew
@@ -10,6 +10,15 @@ function _brew {
     fi
 }
 
+function _brew_cask {
+    local pkg=$1
+    if ! brew cask list $pkg >/dev/null 2>&1; then
+        _run "[brew cask] Install $pkg" brew cask install $@
+    else
+        echo "[brew cask] $pkg is already installed, skipping."
+    fi
+}
+
 case "$(uname -s)" in
     Darwin)
         if ! which brew >/dev/null; then
diff --git a/recipes/TeX b/recipes/tex
similarity index 81%
rename from recipes/TeX
rename to recipes/tex
index ed1783c..607d493 100644
--- a/recipes/TeX
+++ b/recipes/tex
@@ -4,7 +4,7 @@ set +e
 case "$(uname -s)" in
     Darwin)
         _recipe brew
-        brew cask install mactex
+        _brew_cask mactex
         ;;
     *)
         _recipe _apt