X-Git-Url: https://git.jankratochvil.net/?a=blobdiff_plain;f=.bashrc;h=858d2e7b0914f3dcb35728bf8252fbfb706dd0e2;hb=aef35f955a866d2bd0bc822c3481c01b26e0229b;hp=2d0c31f5bfef4ef33239a1257b196cf4059eb5cc;hpb=9edd3daa8905660fb84662cb87c08dfc94f7b334;p=nethome.git diff --git a/.bashrc b/.bashrc index 2d0c31f..858d2e7 100644 --- a/.bashrc +++ b/.bashrc @@ -70,6 +70,8 @@ function _bash_profile_addpath_fini # 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" @@ -194,7 +196,7 @@ export HISTFILESIZE="$HISTSIZE" export GDBHISTFILE="$HOME/.gdb_history" export CVS_RSH="ssh" export TZ=":/usr/share/zoneinfo/Europe/Prague" -MAKEFLAGS= +export MAKEFLAGS= cpus="`getconf _NPROCESSORS_ONLN`" if [ -n "$cpus" ];then MAKEFLAGS="$MAKEFLAGS -j$[$cpus*3/2]" @@ -254,7 +256,7 @@ function ctags {(unset ctags 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" \ @@ -364,6 +366,7 @@ function rpmsrclist fi } function valgrind {(unset valgrind;s=~/.python.valgrind;perl -e 'undef $/;$_=<>;1 while s/^(?:###)?({\n)(?:###)?( *ADDRESS_IN_RANGE.*\n(?:[^}#].*\n)*)###/$1$2/gm;print;' $s;valgrind --suppressions=$s "$@";);} +function yumupdate { yum makecache;yum -y update; } ulimit -S -c 0 set +H