Skip to content

Instantly share code, notes, and snippets.

@peschkaj
Created March 25, 2015 03:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peschkaj/cd2959893ec29e61465e to your computer and use it in GitHub Desktop.
Save peschkaj/cd2959893ec29e61465e to your computer and use it in GitHub Desktop.
if [[ `uname` == 'Linux' ]]
then
export LINUX=1
export GNU_USERLAND=1
else
export LINUX=
fi
if [[ `uname` == 'Darwin' ]]
then
export OSX=1
else
export OSX=
fi
# Detect homebrew GNU userland installation
if [[ "$OSX" == "1" ]]
then
if [[ -e $(brew --prefix coreutils)/libexec/gnubin ]]
then
export GNU_USERLAND=1
fi
source ${ZSH_CUSTOM}/jp-osx.zsh
fi
if [[ "$LINUX" == "1" ]]
then
export EDITOR=/usr/local/bin/emc
else
export EDITOR="subl -w"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment