# EUID="`id -u 2>/dev/null || /usr/xpg4/bin/id -u 2>/dev/null || gid -u`"
_bash_profile_addpath -f PATH "/sbin"
_bash_profile_addpath -f PATH "/usr/sbin"
# EUID="`id -u 2>/dev/null || /usr/xpg4/bin/id -u 2>/dev/null || gid -u`"
_bash_profile_addpath -f PATH "/sbin"
_bash_profile_addpath -f PATH "/usr/sbin"
[ $EUID -eq 0 ] && _bash_profile_addpath -f PATH "/usr/local/sbin"
_bash_profile_addpath -f PATH "/usr/local/bin"
_bash_profile_addpath -f MANPATH "/usr/X11R6/man"
[ $EUID -eq 0 ] && _bash_profile_addpath -f PATH "/usr/local/sbin"
_bash_profile_addpath -f PATH "/usr/local/bin"
_bash_profile_addpath -f MANPATH "/usr/X11R6/man"
done
export GREP_OPTIONS="--binary-files=without-match --directories=skip"
if echo x|GREP_OPTIONS="--exclude=y" grep -q x 2>/dev/null;then
done
export GREP_OPTIONS="--binary-files=without-match --directories=skip"
if echo x|GREP_OPTIONS="--exclude=y" grep -q x 2>/dev/null;then
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.
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.
export MINICOM="-m -c on" # metakeys+color
export HISTSIZE=100000
export HISTFILESIZE="$HISTSIZE"
export GDBHISTFILE="$HOME/.gdb_history"
export CVS_RSH="ssh"
export TZ=":/usr/share/zoneinfo/Europe/Prague"
export MINICOM="-m -c on" # metakeys+color
export HISTSIZE=100000
export HISTFILESIZE="$HISTSIZE"
export GDBHISTFILE="$HOME/.gdb_history"
export CVS_RSH="ssh"
export TZ=":/usr/share/zoneinfo/Europe/Prague"
fi
unset cpus
# 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
fi
unset cpus
# 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
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/
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/
# # 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.
# # 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.
+# Re: [Bug-readline] Readline 6.0 patch 004 trapped signal echoed to conso
+# http://lists.gnu.org/archive/html/bug-readline/2009-09/msg00006.html
+# 2>/dev/null for possible: stty: standard input: Inappropriate ioctl for device
+stty -echoctl 2>/dev/null
); }
function ctags {(unset ctags
if [ $# -ne 0 -a '(' $# -ne 1 -o "$1" '!=' "--c-types=+px" ')' ];then ctags "$@";else
); }
function ctags {(unset ctags
if [ $# -ne 0 -a '(' $# -ne 1 -o "$1" '!=' "--c-types=+px" ')' ];then ctags "$@";else
local _opts _opts_d _now _line _o
_opts_d="-d"
if grep -iw '\(sources.redhat.com\|sourceware.org\):/cvs/src' CVS/Root &>/dev/null;then _opts_d="";fi
local _opts _opts_d _now _line _o
_opts_d="-d"
if grep -iw '\(sources.redhat.com\|sourceware.org\):/cvs/src' CVS/Root &>/dev/null;then _opts_d="";fi
function gdbcvscheckout { sourcewarecvscheckout gdb; }
function binutilscvscheckout { sourcewarecvscheckout binutils; }
function gdbdevelcvscheckout {(set -ex
! test -d gdb-devel
(set +x;CVSROOT=:pserver:anonymous@cvs.fedoraproject.org:/cvs/pkgs cvs checkout -d gdb-devel rpms/gdb/devel)
cd gdb-devel
function gdbcvscheckout { sourcewarecvscheckout gdb; }
function binutilscvscheckout { sourcewarecvscheckout binutils; }
function gdbdevelcvscheckout {(set -ex
! test -d gdb-devel
(set +x;CVSROOT=:pserver:anonymous@cvs.fedoraproject.org:/cvs/pkgs cvs checkout -d gdb-devel rpms/gdb/devel)
cd gdb-devel
);}
function uri_escape { perl -MURI::Escape -le '$_=<>;chomp;print uri_escape $_;'; };
function uri_unescape { perl -MURI::Escape -le '$_=<>;chomp;print uri_unescape $_;'; };
);}
function uri_escape { perl -MURI::Escape -le '$_=<>;chomp;print uri_escape $_;'; };
function uri_unescape { perl -MURI::Escape -le '$_=<>;chomp;print uri_unescape $_;'; };
[ -r "$key" ] || continue
# Do not: [ -n "$SSH_TTY" ] && continue
# as we may want foreign SSH keys too.
[ -r "$key" ] || continue
# Do not: [ -n "$SSH_TTY" ] && continue
# as we may want foreign SSH keys too.