Skip to content

Commit 01b968f

Browse files
committed
Add a default .zshrc.d directory
- Add a default .zshrc.d directory - Add a fragment file to load `mise` if present. Prefer version in `$HOME` to globally installed `mise` Signed-off-by: Joe Block <[email protected]>
1 parent f9299b7 commit 01b968f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

zsh/.zshrc.d/001-load-mise-if-present

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
if [ -f ~/.local/bin/mise ]; then
2+
eval "$(~/.local/bin/mise activate zsh)"
3+
elif [ -f /opt/homebrew/bin/mise ]; then
4+
eval "$(/opt/homebrew/bin/mise activate zsh --shims)"
5+
elif [ -f /usr/local/bin/mise ]; then
6+
eval "$(/usr/local/bin/mise activate zsh)"
7+
fi

0 commit comments

Comments
 (0)