From 84956b648fb07f0c2d2fea28748f021643ad155a Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Fri, 26 May 2017 08:53:03 -0700 Subject: [PATCH] Add OS X check to emacs code. --- bash/emacs.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bash/emacs.sh b/bash/emacs.sh index 67aba77..29d66a5 100644 --- a/bash/emacs.sh +++ b/bash/emacs.sh @@ -1,3 +1,7 @@ # Make emacs the default editor, default to non-gui mode. -alias emacs="/usr/bin/emacs -nw" -export EDITOR="/usr/bin/emacs -nw" +# On OS X, skip this, since emacs will be installed locally through +# homebrew. +if [ $(uname -a | cut -f 1 -d ' ') != 'Darwin' ]; then + alias emacs="/usr/bin/emacs -nw" + export EDITOR="/usr/bin/emacs -nw" +fi