+[ -x /bin/less ] && export PAGER='/bin/less -MMh5cis'
+export PERL_MM_OPT="PERL=$HOME/bin/perlilib"
+[ "$UID" -ne 0 ] && export PERL_MM_OPT="$PERL_MM_OPT PREFIX=$HOME"
+for file in $HOME/.bookmarks.html;do
+ export WWW_HOME="file://$HOME/"
+ [ -r $file ] && export WWW_HOME="file://$file"
+ done
+export GREP_OPTIONS="--binary-files=without-match --directories=skip --exclude=tags --exclude=TAGS --exclude=CVS"
+if [ -n "$PS1" ];then # set only in interactive sessions
+ export PS1='[bash]${LOGNAME}@${HOSTNAME}:${PWD}# '
+ export PS1='\[\017\]'"$PS1" # \017=std charmap
+ export PS1='\[\033%G\]'"$PS1" # \033%G=utf-8
+ # Do not: kbd_mode -u # utf-8
+ # as it breaks keyboard state in X and it is not permitted for non-root.
+ fi
+export MINICOM="-m -c on" # metakeys+color
+export HISTSIZE=100000
+export HISTFILESIZE="$HISTSIZE"
+export GDBHISTFILE="$HOME/.gdb_history"
+export CVS_RSH="ssh"
+# Do not: grep -w "$TERM" /etc/termcap >/dev/null || export TERM=vt220
+# as Sun workaround as Debian misses: /etc/termcap
+# expects: $uname_p
+[ "$TERM" = vt220 -a "${uname_p%86}" != "$uname_p" ] && export TERM=linux
+if grep 2>/dev/null -q '^..............:0C38 00000000:0000 0A ' /proc/net/tcp;then
+ export http_proxy=http://127.0.0.1:3128/
+ export https_proxy=http://127.0.0.1:3128/
+ export ftp_proxy=http://127.0.0.1:3128/
+fi
+export VIMINIT="source `echo "${BASH_SOURCE:-$BASH_ENV}"|sed 's/[.]bashrc$/.vimrc/'`"
+
+export SOCKS5_SERVER=icsocks.holland.sun.com
+
+# Force English.
+unset LANG LANGUAGE `set|sed -n 's/^\(LC_[^=]*\)=.*$/\1/p'`
+export LANG=en_US.UTF-8
+# Force strcoll() to sort case-sensitively! (empty/undef doesn't work)
+export LC_COLLATE=C
+# Do not: # Prevent: perl: warning: Setting locale failed.
+# # due to LC_COLLATE=C and LC_ALL=(unset)
+# export LC_ALL=C
+# as it breaks Mutt "utf-8" and somehow it is no longer needed.
+
+function wclines { awk '{x[$0]++}END{for (i in x) print x[i]"\t"i}'; }; export -f wclines
+# SunOS does not support "-m"
+export ULIMITME_OPTS=""
+for i in "-m 100000" "-d 150000" "-v 200000";do
+ (ulimit $i 2>/dev/null) && ULIMITME_OPTS="$ULIMITME_OPTS $i"
+ done
+# Prevent: ulimit: -m 100000 -d 150000 -v 200000: invalid number
+# by forcing our known $IFS value; eval(1) is needed to take $IFS to effect:
+function ulimitme { IFS=" " eval "ulimit $ULIMITME_OPTS"; }; export -f ulimitme
+function grep {(unset grep; ( ulimitme; grep "$@"; ); );}; export -f grep
+function finame { find . -false `
+ awk </dev/null 'BEGIN{ for (i=1;i<ARGC;i++) print " -o -iname *"ARGV[i]"*"; }' "$@";
+ `; }; export -f finame
+function mkcd { mkdir -p "$1"; cd "$1"; }; export -f mkcd
+function pushdmk { mkdir -p "$1"; pushd "$1"; }; export -f pushdmk
+function rsync {(unset rsync; rsync -v -e ssh --progress --stats --partial --block-size=512 "$@"; );}; export -f rsync
+function tohex { od -An -txC|tr -d '\n '|tr 'a-f' 'A-F';echo; }; export -f tohex
+function edall {
+ find -type f|while read -r i;do
+ (awk </dev/null 'BEGIN{ for (i=1;i<ARGC;i++) print ARGV[i]; }' "$@";echo -e 'w\nq')|ed -s "$i"
+ done
+ }; export -f edall
+function mi { (
+ set -ex;cd "$1";while true;do test "$PWD" != "/";if [ -e configure.in -o -e Makefile.PL ];then break;fi;cd ..;done;make install;
+ ); };export -f mi
+function ctags {(unset ctags;
+ if [ $# -ne 0 -a '(' $# -ne 1 -o "$1" '!=' "--c-types=+px" ')' ];then ctags "$@";else
+ find -type f -a '!' -name tags -a '!' -name TAGS -a '(' -false \
+ -o -name "*.[chC]" \
+ -o -name "*.cc" \
+ -o -name "*.java" \
+ -o -name "*.p[lm]" \
+ ')' \
+ |ctags --file-tags -L - "$@"
+ fi; );}; export -f ctags
+function ctagsh { ctags "--c-types=+px"; }; export -f ctagsh
+function cpan {(unset cpan; if [ $# = 0 ];then cpan;else perl -MCPAN -e "install qw($*);";fi; );}; export -f cpan
+function exx { cd "`unset exx;exx "$@"|tee /proc/self/fd/2|tail -n1|sed -n 's/^extdir=//p'`"; };export -f exx
+function revlines { perl -e 'print reverse <>;'; }; export -f revlines
+function debuginfo { if test -n "$*";then echo "$*";else cat;fi \
+ |xargs rpm -qf|xargs rpmquery --qf '%{SOURCERPM}\n'|sed 's/-[^-]*-[^-]*[.]src[.]rpm$/-debuginfo/'|sort -u; }
+function ipcsrmall { ipcs|awk '/- Shared Memory/{x="-m"}/- Semaphore/{x="-s"}/^0x/{print "ipcrm "x" "$2}'; }
+function eog {(unset eog; touch /tmp/eog.$$;eog "$@" {,,,,,,,,,}/tmp/eog.$$;rm -f /tmp/eog.$$; );}; export -f eog
+
+ulimit -S -c 0
+set +H
+shopt -s mailwarn
+unset OPTIND
+
+if [ -f "$HOME/.bashrc.local" ];then source "$HOME/.bashrc.local";fi
+
+# Interactive part:
+for key in $HOME/.ssh/id_dsa;do
+ [ -r "$key" ] || continue
+ # Do not: [ -n "$SSH_TTY" ] && continue
+ # as we may want foreign SSH keys too.
+
+ agenteval=/tmp/.$USER.ssh-agent.eval
+ if lockfile -1 -r 3 -l 10 -s 1 $agenteval.lock;then
+ test -f $agenteval -a -O $agenteval -a -G $agenteval &&
+ # ">/dev/null" to prevent: echo Agent pid 31074;
+ source $agenteval >/dev/null
+ if [ "ssh-agent" != "`(xargs -0 </proc/"$SSH_AGENT_PID"/cmdline sh -c 'echo "$0"') 2>/dev/null `" ];then
+ rm -f $agenteval
+ (test ! -e $agenteval && ssh-agent -s >$agenteval) || echo >&2 'Failing ssh-agent!'
+ # ">/dev/null" to prevent: echo Agent pid 31074;
+ source $agenteval >/dev/null
+ fi
+ rm -f $agenteval.lock
+ fi
+
+ # Prevent gdm(8) lockups on non-interactive consoles.
+ tty -s || continue
+ (ssh-add -l|grep -qw "$key") && continue
+ if lockfile -! -1 -r 0 $agenteval.input.lock 2>/dev/null;then
+ echo >&2 -n "Locking: $agenteval.input.lock ... "
+ lockfile -1 -r -1 $agenteval.input.lock
+ echo >&2 "locked"
+ fi
+ # Recheck identity existence after the lock acquire
+ if ssh-add -l|grep -qw "$key";then
+ echo >&2 "Identity $key already appended in the meantime."
+ else
+ # "2>/dev/null" to prevent: Identity added: .ssh/id_dsa (.ssh/id_dsa)
+ ssh-add "$key" 2>/dev/null
+ fi
+ rm -f $agenteval.input.lock
+ echo >&2 "$agenteval.input.lock unlocked."
+done
+unset agenteval
+
+ unset _home_short_dotbashrc # permit later reinitializations
+fi # _home_short_dotbashrc