.env
author Oleksandr Gavenko <gavenkoa@gmail.com>
Thu, 26 Jan 2017 14:55:51 +0200
changeset 819 6d313c0c6247
parent 800 3af8147163dc
child 891 0b73115730eb
permissions -rw-r--r--
Do not duplicate completion if we in the middle of the word.

# 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=et

# 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

if [[ $OSTYPE = cygwin ]]; then
  # Avoid permission problem in Cygwin.
  umask 0000
fi

export TIME_STYLE=long-iso

# Easy cd to often used dirs.
export CDPATH=.:$HOME:$HOME/devel:$HOME/my

if [[ ! :$PATH: =~ :$HOME/usr/xbin: ]]; then
  # To override /bin and /usr/bin.
  export PATH=$HOME/usr/xbin:$PATH
fi
if [[ ! :$PATH: =~ :$HOME/usr/bin: ]]; then
  export PATH=$PATH:$HOME/usr/bin
fi
if [[ ! :$PATH: =~ :/usr/sbin: ]]; then
  export PATH=/usr/sbin:$PATH
fi
if [[ ! :$PATH: =~ :/sbin: ]]; then
  export PATH=/sbin:$PATH
fi
if [[ ! :$PATH: =~ :$HOME/.local/bin: ]]; then
  export PATH=$PATH:$HOME/.local/bin
fi
if [[ $OSTYPE = solaris*  &&  ! :$PATH: =~ :/opt/csw/bin: ]]; then
  export PATH=$PATH:/opt/csw/bin
fi


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

case $OSTYPE in
  netbsd*) ;;                               # Do nothing, because NetBSD uses non-GNU man.
  *)
    if [[ -z $MANPATH ]]; then
        export MANPATH=$HOME/usr/share/man:
    elif [[ ! $MANPATH =~ $HOME/usr/share/man: ]]; then
        export MANPATH=$MANPATH:$HOME/usr/share/man:
    fi
    ;;
esac

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

export PYTHONSTARTUP=$HOME/.pystartup

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

if [[ ! :$PATH: =~ :$HOME/.npm-packages/bin: ]]; then
  export PATH=$PATH:$HOME/.npm-packages/bin
fi