# 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"
+_bash_profile_addpath -f PATH "/bin"
+_bash_profile_addpath -f PATH "/usr/bin"
[ $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"
# # 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
+stty -echoctl
function wclines { awk '{x[$0]++}END{for (i in x) print x[i]"\t"i}'; }
# SunOS does not support "-m"
if [ $# -ne 0 -a '(' $# -ne 1 -o "$1" '!=' "--c-types=+px" ')' ];then ctags "$@";else
find -name testsuite -prune -o -name .pc -prune -o -name .svn -prune -o \
-type f -a '!' -name tags -a '!' -name TAGS -a '(' -false \
- -o -name "*.[chC]" \
+ -o -name "*.[chCy]" \
-o -name "*.cc" \
-o -name "*.cxx" \
-o -name "*.java" \
fi
}
function valgrind {(unset valgrind;s=~/.python.valgrind;perl -e 'undef $/;$_=<>;1 while s/^(?:###)?({\n)(?:###)?( *ADDRESS_IN_RANGE.*\n(?:[^}#].*\n)*)###/$1$2/gm;print;' </usr/share/doc/python-devel-2.*/valgrind-python.supp >$s;valgrind --suppressions=$s "$@";);}
+function yumupdate { yum makecache;yum -y update; }
ulimit -S -c 0
set +H