Created
March 31, 2013 19:40
-
-
Save babakinks/5281748 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
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
export PATH="/usr/local/bin:$PATH" | |
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx | |
export JAVA_HOME=`/usr/libexec/java_home -v 1.6` | |
export HADOOP_PREFIX=/opt/cdh4_mac_bundle/hadoop-2.0.0-cdh4.1.1 | |
export HADOOP_MAPRED_HOME=/opt/cdh4_mac_bundle/hadoop-2.0.0-mr1-cdh4.1.1 | |
export HBASE_HOME=/opt/cdh4_mac_bundle/hbase-0.92.1-cdh4.1.1 | |
export HIVE_HOME=/opt/cdh4_mac_bundle/hive-0.9.0-cern-2 | |
export PATH=$PATH:$HADOOP_MAPRED_HOME/bin:$HBASE_HOME/bin:$HIVE_HOME/bin | |
alias hadoopstart='$HADOOP_PREFIX/sbin/start-dfs.sh;$HADOOP_MAPRED_HOME/bin/start-mapred.sh' | |
alias hadoopstop='$HADOOP_PREFIX/sbin/stop-dfs.sh;$HADOOP_MAPRED_HOME/bin/stop-mapred.sh' | |
alias hbasestart='$HBASE_HOME/bin/start-hbase.sh' | |
alias hbasestop='$HBASE_HOME/bin/stop-hbase.sh' | |
alias clusterstart='hadoopstart && hbasestart' | |
alias clusterstop='hbasestop && hadoopstop' |
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
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run ps -p $$ at the command line to determine that you are, in fact, using a bash shell.
Realize that you are in zsh, which means you should be editing your profile in .zshrc.
Copy the offending lines from .bash_profile to .zsh, OR
Modify your .zshrc to directly source your .bash_profile. (By adding . ~/.bash_profile, although I'm sure there's a reason not to do this.)