summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorGrégoire Duchêne <gregoire@awhk.org>2026-05-24 17:50:57 +0100
committerGrégoire Duchêne <gregoire@awhk.org>2026-05-24 17:50:57 +0100
commitdcff1419c119a53dd428e7585d08e189384494a6 (patch)
treef1ae1576d2e3f4be188c2d19738b1bf3adbf2eeb /zsh
parent779f5ffa4e2f97a7750b160b8af3a48b22794562 (diff)
darwin/zsh: Add alias for ‘container’HEADmaster
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}
}