2011-04-30 18:21:21 +00:00
|
|
|
# Copyright (C) 2011 Gabriel Ebner
|
|
|
|
# vim:fdm=marker ft=sh:
|
|
|
|
|
|
|
|
. /etc/profile
|
|
|
|
export USER=`whoami`
|
|
|
|
|
|
|
|
# $MYPREFIX {{{1
|
|
|
|
|
|
|
|
add_to() {
|
|
|
|
if [ -n "`eval echo \$\{$1\}`" ]; then
|
|
|
|
export $1="$2:`eval echo \$\{$1\}`"
|
|
|
|
else
|
|
|
|
export $1="$2"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
add_myprefix_to() {
|
|
|
|
add_to "$1" "$MYPREFIX/$2"
|
|
|
|
}
|
|
|
|
|
2013-05-06 17:29:54 +00:00
|
|
|
export MYPREFIX=$HOME/.local
|
2011-04-30 18:21:21 +00:00
|
|
|
|
|
|
|
add_to PATH /sbin
|
|
|
|
add_to PATH /usr/sbin
|
|
|
|
add_to PATH /usr/local/sbin
|
|
|
|
|
|
|
|
add_to PATH ~/.cabal/bin
|
|
|
|
|
|
|
|
add_myprefix_to LD_LIBRARY_PATH lib
|
|
|
|
add_myprefix_to LD_LIBRARY_PATH lib64
|
|
|
|
|
2011-05-02 15:53:34 +00:00
|
|
|
add_to MANPATH :
|
2011-04-30 21:09:09 +00:00
|
|
|
add_myprefix_to MANPATH share/man
|
2011-04-30 18:21:21 +00:00
|
|
|
|
|
|
|
add_myprefix_to PKG_CONFIG_PATH lib/pkgconfig
|
|
|
|
|
2013-04-28 15:09:25 +00:00
|
|
|
#add_myprefix_to PYTHONPATH lib/python2.7/site-packages
|
|
|
|
#add_myprefix_to PYTHONPATH lib/python/site-packages
|
|
|
|
#add_myprefix_to PYTHONPATH lib/python
|
2011-04-30 18:21:21 +00:00
|
|
|
|
|
|
|
add_myprefix_to RUBYLIB lib/ruby/site_ruby/1.8
|
2011-07-07 11:12:48 +00:00
|
|
|
add_myprefix_to RUBYLIB lib/ruby/site_ruby/1.9.1
|
|
|
|
add_to PATH ~/.gem/ruby/1.8/bin
|
|
|
|
add_to PATH ~/.gem/ruby/1.9.1/bin
|
2011-04-30 18:21:21 +00:00
|
|
|
|
2013-04-29 14:03:36 +00:00
|
|
|
add_myprefix_to PATH bin
|
|
|
|
add_myprefix_to PATH sbin
|
|
|
|
|
2011-04-30 18:21:21 +00:00
|
|
|
if [ -x /usr/bin/perl ]; then
|
2011-07-07 11:13:02 +00:00
|
|
|
PERLVERSION="`perl -e 'printf"%vd\n",$^V'`"
|
|
|
|
add_myprefix_to PERL5LIB lib/perl/$PERLVERSION
|
|
|
|
add_myprefix_to PERL5LIB share/perl/$PERLVERSION
|
2011-04-30 18:21:21 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
add_myprefix_to R_LIBS lib/R:/usr/lib/R/site-library
|
|
|
|
|
2013-05-01 09:57:48 +00:00
|
|
|
export ANDROID_HOME=$HOME/build/android-sdk-linux
|
|
|
|
add_to PATH $ANDROID_HOME/platform-tools:$ANDROID_HOME/tools
|
2011-04-30 18:21:21 +00:00
|
|
|
|
|
|
|
# Customisation of Programs {{{1
|
|
|
|
alias ls='ls --color=auto'
|
2011-05-20 01:23:55 +00:00
|
|
|
export EMAIL='gebner@2b7e.org'
|
2011-04-30 18:21:21 +00:00
|
|
|
test -x /usr/bin/lesspipe && eval `lesspipe`
|
|
|
|
test -x /usr/bin/vim && export EDITOR=/usr/bin/vim
|
|
|
|
|
|
|
|
export MPD_HOST=127.0.0.1 MPD_PORT=6600
|