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 GREP_OPTIONS="$GREP_OPTIONS --exclude=tags --exclude=TAGS --exclude=CVS --exclude=ChangeLog*"
+ export GREP_OPTIONS="$GREP_OPTIONS --exclude=tags --exclude=TAGS --exclude=CVS --exclude=ChangeLog* --exclude=*.svn-base"
# FIXME: grep(1) ignores subdirectories for --exclude.
#export GREP_OPTIONS="$GREP_OPTIONS --exclude=testsuite --exclude=.pc --exclude=.svn"
fi
export HISTFILESIZE="$HISTSIZE"
export GDBHISTFILE="$HOME/.gdb_history"
export CVS_RSH="ssh"
+export TZ=":/usr/share/zoneinfo/Europe/Prague"
# Do not: grep -w "$TERM" /etc/termcap >/dev/null || export TERM=vt220
# as Sun workaround as Debian misses: /etc/termcap
# expects: $uname_p
cvs $_line $_opts "$@"
); }
function perlrpm { repoquery -q --whatprovides $(for i in "$@";do echo "perl($i)";done|sed -e 's/\//::/g' -e 's/[.]pm//g'); }
+# `-u' limits the search to $UID.
+function pidof
+{(unset pidof
+ if [ "$1" = "-u" ];then
+ shift
+ local r="$(pidof "$@")"
+ local space=""
+ local p
+ for p in $r;do
+ if grep -q "$(echo -e "^Uid:\t$UID\t")" "/proc/$p/status";then
+ echo -n "${space}$p"
+ space=" "
+ fi
+ done
+ echo
+ else
+ pidof "$@"
+ fi
+)}
ulimit -S -c 0
set +H