Skip to content

Instantly share code, notes, and snippets.

@mcantrell
Last active December 14, 2015 18:29
Show Gist options
  • Select an option

  • Save mcantrell/5129429 to your computer and use it in GitHub Desktop.

Select an option

Save mcantrell/5129429 to your computer and use it in GitHub Desktop.
Mac Laptop Configuration
# Set environment variables here so they are available globally to all apps
# (and Terminal), including those launched via Spotlight.
#
# After editing this file run the following command from the terminal to update
# environment variables globally without needing to reboot.
# NOTE: You will still need to restart the relevant application (including
# Terminal) to pick up the changes!
# grep -E "^setenv" /etc/launchd.conf | xargs -t -L 1 launchctl
#
# See http://www.digitaledgesw.com/node/31
# and http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x/
#
# Note that you must hardcode the paths below, don't use enviroment variables.
# You also need to surround multiple values in quotes, see MAVEN_OPTS example below.
#
setenv JAVA_VERSION 1.6
setenv JAVA_HOME /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home
setenv GROOVY_HOME /Applications/Dev/groovy
setenv GRAILS_HOME /Applications/Dev/grails
setenv MULE_HOME /Applications/Dev/mule-enterprise-standalone
setenv ANT_HOME /Applications/Dev/ant
setenv ANT_OPTS -Xmx512M
setenv MAVEN_OPTS -Xmx1024M
setenv M2_HOME /Applications/Dev/maven
if [ -x /usr/libexec/path_helper ]; then
eval `/usr/libexec/path_helper -s`
fi
if [ "${BASH-no}" != "no" ]; then
[ -r /etc/bashrc ] && . /etc/bashrc
fi
export PS1="[\$(date +%k:%M:%S)] \u:\w>\n"
export PATH=$GROOVY_HOME/bin:$M2_HOME/bin:$ANT_HOME/bin:/Applications/Dev/mongodb/bin:$MULE_HOME/bin:$PATH
export MAVEN_OPTS="-Xmx1024M -XX:MaxPermSize=512m"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment