summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh')
-rw-r--r--zsh/env4
1 files changed, 4 insertions, 0 deletions
diff --git a/zsh/env b/zsh/env
index e1b1fbf..78fe964 100644
--- a/zsh/env
+++ b/zsh/env
@@ -1,5 +1,9 @@
# -*- mode: shell-script -*-
+command_exists() {
+ return $(( !(${+commands[$1]} == 1) ))
+}
+
dotfiles_root() {
echo ${${(%):-%x}:A:h:h}
}