-
Notifications
You must be signed in to change notification settings - Fork 8
/
.profile.linux
62 lines (50 loc) · 1.5 KB
/
.profile.linux
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
#*******************************************************************************
#
# .profile.linux
#
#*******************************************************************************
# PATH
PATH=~/bin:~/dotfiles/bin:/usr/local/bin:/usr/local/sbin:/usr/local/share:$PATH
export PATH
# MANPATH
MANPATH=/usr/local/share/man:/usr/share/man:$MANPATH
export MANPATH
# INFOPATH
INFOPATH=/usr/local/share/info:/usr/share/info:$INFOPATH
export INFOPATH
# LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH${LD_LIBRARY_PATH:+:}/usr/local/lib
# PKG_CONFIG_PATH
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig
# Java
if [ -d /usr/java/default ]; then
export JAVA_HOME=/usr/java/default
export PATH=$JAVA_HOME/bin:$PATH
export CATALINA_HOME='/usr/local/tomcat'
export JAVA_OPTS='-Dfile.encoding=UTF-8'
fi
# Maven
export MAVEN_VERSION='2.2.1'
if [ -d /usr/local/apache-maven-$MAVEN_VERSION ]; then
export MAVEN_HOME=/usr/local/apache-maven-$MAVEN_VERSION
export PATH=$MAVEN_HOME/bin:$PATH
export MAVEN_OPTS=-Xmx1024M
else
unset MAVEN_VERSION
fi
# MySQL
if [ -d /usr/local/mysql ]; then
export MYSQL_HOME=/usr/local/mysql
export PATH=$MYSQL_HOME/bin:$PATH
fi
# Python
export VIRTUALENV_USE_DISTRIBUTE=true
export VIRTUAL_ENV_DISABLE_PROMPT=true
export PYTHONSTARTUP=~/.pythonstartup
export PYTHONPATH=./lib:~/lib/python
# rvm
if [ -d $HOME/.rvm ]; then
export PATH=$HOME/.rvm/bin:$PATH
fi
# Complete messages.
echo "Loading .profile.linux completed!!"