summaryrefslogtreecommitdiff
path: root/debug
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2017-03-18 13:24:26 +0300
committerDominik Ritter <dritter03@googlemail.com>2017-03-18 13:24:26 +0300
commit1ac59158eddf8d827019e964127dd551573b237c (patch)
tree9c7b9830964a273bcad7a575436cb683b3a0e24a /debug
parentaa26c73521ed13aa62d7a751678648c6be3a138c (diff)
Add warn message if XCode is not installed
Diffstat (limited to 'debug')
-rwxr-xr-xdebug/iterm.zsh5
1 files changed, 5 insertions, 0 deletions
diff --git a/debug/iterm.zsh b/debug/iterm.zsh
index bc3e72b4..f9752540 100755
--- a/debug/iterm.zsh
+++ b/debug/iterm.zsh
@@ -6,6 +6,11 @@ if [[ "$TERM_PROGRAM" != "iTerm.app" ]]; then
exit 1
fi
+if [[ ! -x "/usr/libexec/PlistBuddy" ]]; then
+ print "To use this debug script, you need to install XCode!"
+ exit 1
+fi
+
local normalFont
local type
local command