Created
October 18, 2018 17:43
-
-
Save marchold/25b589c129778eaecb5e3e576651cea7 to your computer and use it in GitHub Desktop.
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
#prefix history | |
bind '"\eOA": history-search-backward' | |
bind '"\e[A": history-search-backward' | |
bind '"\eOB": history-search-forward' | |
bind '"\e[B": history-search-forward' | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
alias gitundo='git reset --soft HEAD~1'Ã\203Â\203Ã\202Â\203Ã\203Â\202Ã\202Â\203Ã\203Â\203Ã\202Â\202Ã\203Â\202Ã\202¢Ã\203Â\203Ã\202Â\203Ã\203Â\202Ã\202Â\202Ã\203Â\203Ã\202Â\20\ | |
2Ã\203Â\202Ã\202Â\200Ã\203Â\203Ã\202Â\203Ã\203Â\202Ã\202Â\202Ã\203Â\203Ã\202Â\202Ã\203Â\202Ã\202Â\202Ã\203Â\203Ã\202Â\203Ã\203Â\202Ã\202Â\203Ã\203Â\203Ã\202Â\202Ã\203Â\202Ã\20\ | |
2¢Ã\203Â\203Ã\202Â\203Ã\203Â\202Ã\202Â\202Ã\203Â\203Ã\202Â\202Ã\203Â\202Ã\202Â\200Ã\203Â\203Ã\202Â\203Ã\203Â\202Ã\202Â\202Ã\203Â\203Ã\202Â\202Ã\203Â\202Ã\202Â\202Ã\203Â\203Ã\\ | |
202Â\203Ã\203Â\202Ã\202Â\203Ã\203Â\203Ã\202Â\202Ã\203Â\202Ã\202¢Ã\203Â\203Ã\202Â\203Ã\203Â\202Ã\202Â\202Ã\203Â\203Ã\202Â\202Ã\203Â\202Ã\202Â\200Ã\203Â\203Ã\202Â\203Ã\203Â\202\ | |
Ã\202Â\202Ã\203Â\203Ã\202Â\202Ã\203Â\202Ã\202Â\202Ã\203Â\203Ã\202Â\203Ã\203Â\202Ã\202Â\203Ã\203Â\203Ã\202Â\202Ã\203Â\202Ã\202¢Ã\203Â\203Ã\202Â\203Ã\203Â\202Ã\202Â\202Ã\203Â\2\ | |
03Ã\202Â\202Ã\203Â\202Ã\202Â\200Ã\203Â\203Ã\202Â\203Ã\203Â\202Ã\202Â\202Ã\203Â\203Ã\202Â\202Ã\203Â\202Ã\202Â\202Ã\203Â\203Ã\202Â\203Ã\203Â\202Ã\202Â\203Ã\203Â\203Ã\202Â\202Ã\2\ | |
03Â\202Ã\202¢Ã\203Â\203Ã\202Â\203Ã\203Â\202Ã\202Â\202Ã\203Â\203Ã\202Â\202Ã\203Â\202Ã\202Â\200Ã\203Â\203Ã\202Â\203Ã\203Â\202Ã\202Â\202Ã\203Â\203Ã\202Â\202Ã\203Â\202Ã\202Â\202 | |
# set the number of open files to be 1024 | |
ulimit -S -n 1024 | |
#allows us to call "setjdk 1.7" or "setjdk 1.6" | |
function setjdk() { | |
if [ $# -ne 0 ]; then | |
removeFromPath '/System/Library/Frameworks/JavaVM.framework/Home/bin' | |
if [ -n "${JAVA_HOME+x}" ]; then | |
removeFromPath $JAVA_HOME | |
fi | |
export JAVA_HOME=`/usr/libexec/java_home -v $@` | |
export PATH=$JAVA_HOME/bin:$PATH | |
fi | |
echo JAVA_HOME set to $JAVA_HOME | |
java -version | |
} | |
function removeFromPath() { | |
export PATH=$(echo $PATH | sed -E -e "s;:$1;;" -e "s;$1:?;;") | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment