From f36d68cdff6a057e2c79ca27c222454b3d08c41c Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 8 Apr 2020 00:11:38 +0100 Subject: [PATCH] Update shell setup for python with macOS specific logic --- zsh/python.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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