Skip to content

zmodule add homebrew completion with if condition #477

Closed Answered by cattyhouse
cattyhouse asked this question in Q&A
Discussion options

You must be logged in to vote

finally i come up with a clean and arbitrary if condition without adding the eval to .zprofile:

# in ~/.zimrc
if [[ -d /opt/homebrew/share/zsh ]] && [[ $(uname) == Darwin ]] ; then
    zmodule /opt/homebrew/share/zsh --fpath site-functions
fi
# but before
zmodule completion

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@antoineco
Comment options

@cattyhouse
Comment options

Comment options

You must be logged in to vote
1 reply
@c4shdev
Comment options

Answer selected by cattyhouse
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants