feat(zsh): add conditional logic for mac

This commit is contained in:
2026-01-21 23:37:51 +01:00
parent 54deab7cab
commit 63358a8f89
7 changed files with 26 additions and 13 deletions

View File

@@ -12,11 +12,20 @@ export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#ffffff,bg=cyan,bold,underline"
source $ZDOTDIR/.antidote/antidote.zsh
antidote load
if [[ "$OSTYPE" == "darwin"* ]]; then
antidote load ${ZDOTDIR:-~}/.zsh_plugins_darwin.txt
fi
unsetopt autocd
# pyenv
eval "$(pyenv init - zsh)"
eval "$(pyenv virtualenv-init - zsh)"
if [[ "$OSTYPE" == "darwin"* ]]; then
eval "$(pyenv init - zsh)"
eval "$(pyenv virtualenv-init - zsh)"
fi
if [[ "$OSTYPE" == "darwin"* ]]; then
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
fi
# ggman
eval "$(ggman shellrc)"