From 160e1a39269c89720088580135fc3e330057d563 Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Sat, 2 Jun 2012 14:20:57 -0400 Subject: [PATCH] Check operating system in osx --- modules/osx/init.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/osx/init.zsh b/modules/osx/init.zsh index 83c4e67..953cba7 100644 --- a/modules/osx/init.zsh +++ b/modules/osx/init.zsh @@ -5,6 +5,11 @@ # Sorin Ionescu # +# This module is for Mac OS X only. +if [[ "$OSTYPE" != darwin* ]]; then + return 1 +fi + # Change directory to the current Finder directory. alias cdf='cd "$(pfd)"'