This repository has been archived by the owner on Jul 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
bashrc-custom.sample
63 lines (49 loc) · 1.96 KB
/
bashrc-custom.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# -*- mode: sh -*-
# copy this file to ~/.bashrc-custom and modify for environment
# the following are exported in bashrc if they exist
JAVA_HOME=/Library/Java/Home
M2_HOME="${HOME}/opt/maven"
ANT_HOME="${HOME}/opt/ant"
SCALA_HOME="${HOME}/opt/scala"
# override location of ivy2 repo, setup in bashrc
# remove to use default ~/.ivy2
IVY2_REPO_DIR=/somepath
SBT_OPTS="-Dsbt.ivy.home=${IVY2_REPO_DIR} -Divy.home=${IVY2_REPO_DIR} -Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M"
# setup servers
export JETTY_HOME=${HOME}/opt/jetty
export JBOSS_HOME=${HOME}/opt/jboss
export APPENGINE_HOME=/Library/GoogleAppEngine/Home
export MONGO_HOME=${HOME}/opt/mongo
# python from brew
which brew 1> /dev/null && export PYTHONPATH="$(brew --prefix)/lib/python2.7/site-packages:$PYTHONPATH"
# python on linux
#export PYTHONPATH="/usr/local/lib/python2.7/site-packages:$PYTHONPATH"
# docbook
XML_CATALOG_FILES="${XML_CATALOG_FILES:-/usr/local/etc/xml/catalog}"
if [ -e "${XML_CATALOG_FILES}" ]; then
export XML_CATALOG_FILES=${XML_CATALOG_FILES}
fi
# mactex
if [ $(uname) == "Darwin" ]; then
# install mactex from http://www.tug.org/mactex/ and update accordingly
export MACTEXT_HOME="/usr/local/texlive/2012/bin/x86_64-darwin"
prepend_path "${MACTEXT_HOME}"
fi
# emacs on MacOSX, seems to be needed by cask
export EMACS=/Applications/Emacs.app/Contents/MacOS/Emacs
# rbenv
RBENV="${HOME}/.rbenv"
# git completion
GIT_COMPLETION_DIR=/usr/local/etc/bash_completion.d
# aliases
alias fastant="ant -Dskip.download=true -Divy.has.resolved=true"
alias fant=fastant
#PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
#[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
#source $(rvm 2.3.0 do rvm env --path)
#if [ "${RBENV}x" != "x" ]; then
# prepend_path "${RBENV}/bin"
# eval "$(rbenv init -)"
#fi
#export NVM_DIR="/Users/mjwall/.nvm"
#[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm