openpkg/dot.bash_login

Mon, 28 Jan 2013 17:37:18 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 28 Jan 2013 17:37:18 +0100
changeset 758
a2c6460cfb16
parent 13
cb59d6afeb61
permissions
-rw-r--r--

Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.

     1 ##
     2 ##  @l_prefix@/.bash_login -- Local Bash Login Script
     3 ##  Copyright (c) 2000-2012 OpenPKG GmbH <http://openpkg.com/>
     4 ##
     5 ##  This software is property of the OpenPKG GmbH, DE MUC HRB 160208.
     6 ##  All rights reserved. Licenses which grant limited permission to use,
     7 ##  copy, modify and distribute this software are available from the
     8 ##  OpenPKG GmbH.
     9 ##
    10 ##  THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
    11 ##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    12 ##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    13 ##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    14 ##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    15 ##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    16 ##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    17 ##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    18 ##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    19 ##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    20 ##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    21 ##  SUCH DAMAGE.
    22 ##
    24 #   provide user and host information in default prompt
    25 PS1="\u@\h\$ "
    27 #   environment permissions
    28 umask 022
    29 ulimit -c 16384
    31 #   history functionality
    32 shopt -s histappend
    33 HISTSIZE=100
    34 HISTFILESIZE=100
    36 #   various additional variables
    37 export TMPDIR=/tmp
    38 export BLOCKSIZE=1024
    40 #   activate the bootstrapping Bourne-Shell
    41 #   environment of the OpenPKG hierarchy
    42 eval `@l_prefix@/bin/openpkg rc --eval openpkg env`
    44 #   make sure some non-standard but usually
    45 #   important executable directories are active
    46 test -d /usr/ccs/bin   && PATH="$PATH:/usr/ccs/bin"
    47 test -d /usr/local/bin && PATH="$PATH:/usr/local/bin"
    49 #   initially adjust $PWD to symbolic path
    50 cd $HOME
    52 #   path to bash environment init script
    53 BASH_ENV=$HOME/.bashrc
    55 #   source the standard environment script
    56 . $BASH_ENV

mercurial