-export LC_CTYPE=cs_CZ.ISO-8859-2
-export PERL_MM_OPT="PREFIX=$HOME"
-export WWW_HOME="file:///home/short/.bookmarks.html"
-export GREP_OPTIONS="--binary-files=without-match --directories=skip"
-
-# even when LANG is set to "en_US" it is lethal - strcoll() starts to sort case-insensitively!
-unset LANG
-
-function cvsdiff { cvs diff "$@" 2>&1|pipebuf -q| less; }; export -f cvsdiff
-function cvsdiffi { cvs diff "$@" 2>&1|pipebuf -q|grep -v '^?'|less; }; export -f cvsdiffi
-function cvsupdate { cvs update "$@" 2>&1|pipebuf -q| less; }; export -f cvsupdate
-function cvsupdatei { cvs update "$@" 2>&1|pipebuf -q|grep -v '^?'|less; }; export -f cvsupdatei
-function cvsfiles {
- for i in `find . -name Entries|grep '/CVS/Entries$'`;do
- j="`echo "$i"|sed 's,CVS/Entries$,,'`"
- sed -n 's,^/\([^/]*\)/[^-].*$,'"$j"'\1,p' <$i
- done \
- | sed 's%^\./%%'
- }; export -f cvsfiles
-function cvsignore {
- for i in `find . -name .cvsignore`;do
- j="`echo "$i"|sed 's,\.cvsignore$,,'`"
- sed -n 's,^.*$,'"$j"'&,p' <$i
- done
- }; export -f cvsignore
-function cvsignorerm { cvsignore | xargs rm -f; }; export -f cvsignorerm
+[ -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.