From 9c8c2003cdbb72931c11e7939f59f6e5daf31373 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Sat, 2 Jun 2012 14:18:36 -0400 Subject: [PATCH] Check operating system in macports --- modules/macports/init.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/macports/init.zsh b/modules/macports/init.zsh index c07ad2d6..899d58be 100644 --- a/modules/macports/init.zsh +++ b/modules/macports/init.zsh @@ -5,6 +5,11 @@ # Matt Cable # +# This module is for Mac OS X only. +if [[ "$OSTYPE" != darwin* ]]; then + return 1 +fi + # Aliases alias pc="sudo port clean --all installed" alias pi="sudo port install $1"