.env
author Oleksandr Gavenko <gavenkoa@gmail.com>
Tue, 14 Jan 2014 11:24:18 +0200
changeset 684 95b15ebd8e1e
parent 655 2565437c1410
child 698 39d24046cebf
permissions -rw-r--r--
Ignore whitespaces when doing source annotation.

# Bash and Zsh common env var settings. -*- sh -*-

# set -x
# set -u

export DEBFULLNAME='Oleksandr Gavenko'
export DEBEMAIL='gavenkoa@gmail.com'

# XXX for mc, cvs, svn, ...
export EDITOR=vim

# XXX vim and gnome-terminal have support for 256 colours in fedora 8 at least
# Note debian/ubuntu users should install the ncurses-term package to support this
# export TERM=xterm-256color

# Special case for CYGWIN to properly display russian letters in rxvt.
# Don't forget set in Windows SHELL=/bin/bash. If default SHELL is sh then .bashrc will not be read.
if [[ $OSTYPE = cygwin ]]; then
  export LANG=ru_RU.CP1251
  # Avoid permission problem in Cygwin.
  umask 0000
fi

export TIME_STYLE=long-iso

# Easy cd to often used dirs.
export CDPATH=.:~:~/devel:~/devel/my-devel

if [[ ! $PATH =~ $HOME/usr/bin ]]; then
  export PATH=$PATH:~/usr/bin
fi
if [[ ! :$PATH =~ :/usr/sbin ]]; then
  export PATH=/usr/sbin:$PATH
fi
if [[ ! :$PATH =~ :/sbin ]]; then
  export PATH=/sbin:$PATH
fi

if [[ ! $LD_LIBRARY_PATH =~ $HOME/usr/lib ]]; then
  export LD_LIBRARY_PATH=$HOME/usr/lib
else
  export LD_LIBRARY_PATH="$LD_LIBRARY_PATH":$HOME/usr/lib
fi

if [[ -z "$MANPATH" ]]; then
  export MANPATH=~/usr/share/man:
elif [[ ! $MANPATH =~ $HOME/usr/share/man: ]]; then
  export MANPATH=$MANPATH:$HOME/usr/share/man:
fi

if [[ -z "$INFOPATH" ]]; then
  export INFOPATH=~/usr/share/info:
elif [[ ! $INFOPATH =~ $HOME/usr/share/info: ]]; then
  export INFOPATH=$INFOPATH:$HOME/usr/share/info:
fi

export PYTHONSTARTUP=~/.pystartup

export GRADLE_OPTS='-Dorg.gradle.daemon=true'

export PATH=$PATH:/home/user/.npm-packages/bin