Last active
August 29, 2015 13:59
-
-
Save likejazz/4d7905ca491dc377f8f2 to your computer and use it in GitHub Desktop.
My .profile in Mac Os X
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
# ~/.profile: executed by the command interpreter for login shells. | |
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login | |
# exists. | |
# Tell `ls` to be colourful | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxCxDxBxegedabagacad | |
# Tell `grep` to highlight matches | |
export GREP_OPTIONS='--color=auto' | |
# Prompt w/ absolute path | |
export PS1='\u@\h:\w\$ ' | |
# Java-related configurations | |
export JAVA_HOME=`/usr/libexec/java_home -v 1.8` | |
export M2_HOME=/usr/local/opt/maven/libexec | |
export GRADLE_HOME=/usr/local/opt/gradle/libexec | |
export GROOVY_HOME=/usr/local/opt/groovy/libexec | |
export HIVE_HOME=/usr/local/opt/hive/libexec | |
export HADOOP_CLASSPATH=$JAVA_HOME/lib/tools.jar | |
# To use with IntelliJ, set the Scala home to: | |
# /usr/local/opt/scala/idea | |
# To use the assemblies from other formulae you need to set: | |
# export MONO_GAC_PREFIX="/usr/local" | |
# aliases | |
alias ls="ls -v" | |
alias ll="ls -lv" | |
alias hd="cd /usr/local/opt/hadoop/libexec/etc/hadoop" | |
alias hstart="/usr/local/opt/hadoop/sbin/start-dfs.sh;/usr/local/opt/hadoop/sbin/start-yarn.sh" | |
alias hstop="/usr/local/opt/hadoop/sbin/stop-yarn.sh;/usr/local/opt/hadoop/sbin/stop-dfs.sh" | |
# $PATH | |
BREW_PATH=/usr/local/bin:/usr/local/sbin | |
export PATH=$HOME/bin:$BREW_PATH:$PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment