From 2369c5c79203fd7b0381bff4171d8d03caa3d104 Mon Sep 17 00:00:00 2001 From: Ben O'Hara Date: Thu, 31 May 2012 00:46:38 +1000 Subject: [PATCH] Dont run if not on darwin prepend /opt/local/{bin,sbin} to the path --- modules/macports/init.zsh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/macports/init.zsh b/modules/macports/init.zsh index c07ad2d6..2b881a2e 100644 --- a/modules/macports/init.zsh +++ b/modules/macports/init.zsh @@ -5,6 +5,10 @@ # Matt Cable # +if [[ "$OSTYPE" != darwin* ]]; then + return 1 +fi + # Aliases alias pc="sudo port clean --all installed" alias pi="sudo port install $1" @@ -13,3 +17,7 @@ alias puni="sudo port uninstall inactive" alias puo="sudo port upgrade outdated" alias pup="psu && puo" +path=( + /opt/local/{bin,sbin} +$path +)