Created
March 25, 2015 03:22
-
-
Save peschkaj/cd2959893ec29e61465e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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