diff --git a/zsh/python.zsh b/zsh/python.zsh index 9fb1a1b..6923fc2 100644 --- a/zsh/python.zsh +++ b/zsh/python.zsh @@ -10,7 +10,7 @@ install_python_global_packages () { 'yamllint' ) - if (( $+commands[brew] )); then + if [[ "$OSTYPE" == "darwin"* ]] && (( $+commands[brew] )); then brew list python >/dev/null || brew install python fi