Created
June 9, 2017 17:15
-
-
Save bradkarels/a1c655a38e9f9f7ad181a6485d1279d9 to your computer and use it in GitHub Desktop.
Yet another bashrc file I want some stuff from...
This file contains hidden or 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
#export PS1="\u@\w \\$ " | |
export PS1="bk@\w \\$ " | |
# JAVA | |
export JAVA_HOME="$(/usr/libexec/java_home -v 1.8)" | |
#JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:bin/javac::") | |
#export JAVA_OPTS="-Xms1G -Xmx2G -XX:PermSize=512m -XX:MaxPermSize=1G -server" | |
export SCALA_HOME=/usr/local/share/scala/current | |
export PATH=$SCALA_HOME/bin:$PATH | |
export HADOOP_HOME=/Users/z001vmk/hadoop/hadoop-3.0.0-alpha1 | |
export PATH=$PATH:$HADOOP_HOME/bin | |
export SBT_OPTS="-XX:+CMSClassUnloadingEnabled" | |
# don't put duplicate lines or lines starting with space in the history. | |
# See bash(1) for more options | |
HISTCONTROL=ignoreboth | |
# append to the history file, don't overwrite it | |
shopt -s histappend | |
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) | |
HISTSIZE=10000 | |
HISTFILESIZE=20000 | |
# check the window size after each command and, if necessary, | |
# update the values of LINES and COLUMNS. | |
shopt -s checkwinsize | |
# some more ls aliases | |
alias ll='ls -alh' | |
alias la='ls -Ah' | |
alias l='ls -lh' | |
alias ..='cd ..' | |
alias ...='cd .. && ll' | |
alias ..2='cd ../..' | |
alias ..3='cd ../../..' | |
alias ..4='cd ../../../..' | |
alias ..5='cd ../../../../..' | |
alias dev='cd ~/dev && ll' | |
alias gs='git status' | |
alias gf='git fetch' | |
alias gb='git branch' | |
alias gc='git checkout' | |
alias gas='git add . && git status' | |
# User defined functions | |
function mkdircd () { mkdir -p "$@" && eval cd "\"\$$#\""; } | |
function cdl { cd $1 && echo $PWD && ll; } | |
function cdd { cd $1 && echo $PWD && ll; } | |
#function aws { aws ecr get-login --region us-west-2 } | |
export SPARK_HOME=/Users/z001vmk/spark/current | |
export SPARK_PRINT_LAUNCH_COMMAND=true | |
#export SPARK_LOCAL_IP=127.0.0.1 | |
#export PYSPARK_PYTHON=python3 | |
#export PYSPARK_DRIVER_PYTHON=python3 | |
#export PYSPARK_DRIVER_PYTHON_OPTS='notebook' | |
#export PYTHONHASHSEED=321 | |
# Setting PATH for Python 3.5 | |
# The orginal version is saved in .bash_profile.pysave | |
PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}" | |
export PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment