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