1 #!/bin/bash |
|
2 |
|
3 # set -x |
|
4 # set -u |
|
5 |
|
6 export DEBFULLNAME='Oleksandr Gavenko' |
|
7 export DEBEMAIL='gavenkoa@gmail.com' |
|
8 |
|
9 # XXX for mc, cvs, svn, ... |
|
10 export EDITOR=vim |
|
11 |
|
12 # XXX vim and gnome-terminal have support for 256 colours in fedora 8 at least |
|
13 # Note debian/ubuntu users should install the ncurses-term package to support this |
|
14 # export TERM=xterm-256color |
|
15 |
|
16 # Special case for CYGWIN to properly display russian letters in rxvt. |
|
17 # Don't forget set in Windows SHELL=/bin/bash. If default SHELL is sh then .bashrc will not be read. |
|
18 if [[ $OSTYPE = cygwin ]]; then |
|
19 export LANG=ru_RU.CP1251 |
|
20 # Avoid permission problem in Cygwin. |
|
21 umask 0000 |
|
22 fi |
|
23 |
|
24 export TIME_STYLE=long-iso |
|
25 |
|
26 # Easy cd to often used dirs. |
|
27 export CDPATH=.:~:~/devel:~/devel/my-devel |
|
28 |
|
29 if [[ ! $PATH =~ $HOME/usr/bin ]]; then |
|
30 export PATH=$PATH:~/usr/bin |
|
31 fi |
|
32 if [[ ! :$PATH =~ :/usr/sbin ]]; then |
|
33 export PATH=/usr/sbin:$PATH |
|
34 fi |
|
35 if [[ ! :$PATH =~ :/sbin ]]; then |
|
36 export PATH=/sbin:$PATH |
|
37 fi |
|
38 |
|
39 if [[ ! $LD_LIBRARY_PATH =~ $HOME/usr/lib ]]; then |
|
40 export LD_LIBRARY_PATH=$HOME/usr/lib |
|
41 else |
|
42 export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":$HOME/usr/lib |
|
43 fi |
|
44 |
|
45 if [[ -z "$MANPATH" ]]; then |
|
46 export MANPATH=~/usr/share/man: |
|
47 elif [[ ! $MANPATH =~ $HOME/usr/share/man: ]]; then |
|
48 export MANPATH=$MANPATH:$HOME/usr/share/man: |
|
49 fi |
|
50 |
|
51 if [[ -z "$INFOPATH" ]]; then |
|
52 export INFOPATH=~/usr/share/info: |
|
53 elif [[ ! $INFOPATH =~ $HOME/usr/share/info: ]]; then |
|
54 export INFOPATH=$INFOPATH:$HOME/usr/share/info: |
|
55 fi |
|
56 |
|
57 export PYTHONSTARTUP=~/.pystartup |
|
58 |
|
59 export GRADLE_OPTS='-Dorg.gradle.daemon=true' |
|
60 |
|