a8cd5a2fe9
Sure hope I didn't miss any super secret crap :-P
110 lines
2.8 KiB
Bash
110 lines
2.8 KiB
Bash
if [ "$TERM" != "dumb" ] && $(dircolors -b >/dev/null 2>&1)
|
|
then
|
|
eval "`dircolors -b`"
|
|
fi
|
|
|
|
export EDITOR=vim
|
|
export VISUAL=vim
|
|
export FLASHPLAYER_HOME=$HOME/.local/share/flashplayer
|
|
export FLEX_HOME=$HOME/opt/flex-sdk
|
|
|
|
export _LOC_ACLOCAL="$HOME/share/aclocal"
|
|
|
|
if [ -d "$HOME/share/aclocal" ]
|
|
then
|
|
ACLOCAL_PATH="$_LOC_ACLOCAL:$ACLOCAL_PATH"
|
|
ACLOCAL_FLAGS="-I $_LOC_ACLOCAL"
|
|
for d in $(find $HOME/share/aclocal -type d)
|
|
do
|
|
ACLOCAL_PATH="$ACLOCAL_PATH:$d"
|
|
ACLOCAL_FLAGS="-I $d $ACLOCAL_FLAGS"
|
|
done
|
|
export ACLOCAL_PATH
|
|
export ACLOCAL_FLAGS
|
|
unset d
|
|
fi
|
|
|
|
|
|
function __addjars(){
|
|
if [ -d "$1" ] ; then
|
|
for j in $(find $1 -name \*.jar) ; do
|
|
CLASSPATH="$CLASSPATH:$j"
|
|
done
|
|
unset j
|
|
fi
|
|
export CLASSPATH
|
|
}
|
|
|
|
function __normclasspath(){
|
|
tmp=/tmp/$RANDOM.$RANDOM.$RANDOM.cp
|
|
echo $CLASSPATH | tr ":" "\n" > $tmp
|
|
|
|
cat $tmp | sed -e "s/^://" | sort | uniq | tr "\n" ":"
|
|
}
|
|
|
|
CLASSPATH="$PWD"
|
|
|
|
JYTHON_HOME="/opt/jython"
|
|
PRIVATE_JARS_HOME="$HOME/.local/private-jars"
|
|
FLEX_JARS="$FLEX_HOME/lib"
|
|
|
|
__addjars "$JYTHON_HOME/extlibs"
|
|
__addjars "$PRIVATE_JARS_HOME"
|
|
__addjars "$FLEX_JARS"
|
|
__addjars "/usr/share/java"
|
|
|
|
CLASSPATH="$(__normclasspath)"
|
|
|
|
export CLASSPATH
|
|
export HISTCONTROL=ignoreboth
|
|
|
|
LD_LIBRARY_PATH="/usr/include:/usr/include/python2.5:$HOME/lib"
|
|
for d in mysql python2.6 pkgconfig engines ; do
|
|
LD_LIBRARY_PATH="$HOME/lib/$d:$LD_LIBRARY_PATH"
|
|
done
|
|
unset d
|
|
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/include:$HOME/include/python2.6"
|
|
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/include/wx-2.8"
|
|
export LD_LIBRARY_PATH
|
|
export INCLUDE_PATH="$LD_LIBRARY_PATH:$HOME/include/python2.5:/usr/include"
|
|
|
|
LIB_PATH=$LD_LIBRARY_PATH:$LIB_PATH
|
|
export LIB_PATH
|
|
|
|
PATH="$HOME/bin:$HOME/.local/bin:/usr/local/bin:/usr/local/sbin:$PATH"
|
|
PATH="$PATH:$FLEX_HOME/bin:$FLASHPLAYER_HOME/bin"
|
|
PATH="$PATH:/opt/java/bin"
|
|
PATH="$HOME/.rbenv/bin:$PATH"
|
|
export PATH
|
|
export PS1="%m %d %# "
|
|
export PROMPT_COMMAND='PS1=$(precmd yup)'
|
|
|
|
export PS2=">>> "
|
|
PYTHONPATH="$HOME/lib/python2.6/site-packages:$PYTHONPATH"
|
|
PYTHONPATH="/usr/lib/python2.6/site-packages:$PYTHONPATH"
|
|
PYTHONPATH="$PYTHONPATH:/var/lib/python-support/python2.5"
|
|
PYTHONPATH="$PYTHONPATH:$HOME/lib/svn-python"
|
|
PYTHONPATH="$PYTHONPATH:/var/lib/python-support/python2.6"
|
|
export PYTHONPATH
|
|
|
|
export LUA_PATH="$HOME/share/lua/5.1/?.lua;;"
|
|
|
|
export __SSH_KEYS__="$(/bin/ls $HOME/.ssh/*_*sa)"
|
|
export PKG_CONFIG_PATH="$HOME/lib/pkgconfig:$PKG_CONFIG_PATH"
|
|
export CMAKE_ROOT="$HOME/share/cmake-2.8"
|
|
export OSYNC_TRACE="$HOME/var/tmp/opensync"
|
|
export OSYNC_NOPRIVACY=1
|
|
|
|
export WINEPREFIX="$HOME/.wine"
|
|
export GREP_COLOR=auto
|
|
|
|
export GIT_PS1_SHOWDIRTYSTATE="1"
|
|
export GIT_PS1_SHOWSTASHSTATE="1"
|
|
export GIT_PS1_SHOWUNTRACKEDFILES="1"
|
|
export GIT_PS1_SHOWUPSTREAM="auto"
|
|
export GIT_PS1_DESCRIBE_STYLE="default"
|
|
# ^--- could also be "contains", "branch", or "describe"
|
|
|
|
|
|
# vim:filetype=sh
|