aboutsummaryrefslogtreecommitdiff
path: root/runcoms
diff options
context:
space:
mode:
Diffstat (limited to 'runcoms')
-rw-r--r--runcoms/zshrc12
1 files changed, 10 insertions, 2 deletions
diff --git a/runcoms/zshrc b/runcoms/zshrc
index ea7d522..808616a 100644
--- a/runcoms/zshrc
+++ b/runcoms/zshrc
@@ -88,12 +88,20 @@ fi
if [[ -s "/opt/homebrew/bin/brew" ]]; then
. /opt/homebrew/etc/profile.d/z.sh
else
- . /usr/local/etc/profile.d/z.sh
+ if [[ -s "/usr/share/z/z.sh" ]]; then
+ . /usr/share/z/z.sh
+ else
+ . /usr/local/etc/profile.d/z.sh
+ fi
fi
# ASDF
if ! command -v brew &> /dev/null; then
- . $HOME/.asdf/asdf.sh
+ if [[ -s "/opt/asdf-vm/asdf.sh" ]]; then
+ . /opt/asdf-vm/asdf.sh
+ else
+ . $HOME/.asdf/asdf.sh
+ fi
else
. $(brew --prefix asdf)/asdf.sh
fi