X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=.bashrc;h=f401ff25725d661b3bdcbe453351040bced37eea;hb=5b7268befaa7b1151a7e1fc82c11bc66dfad5b4b;hp=e962abae4deffb78be7411be8aec7fd86788fcc0;hpb=7f5388c66628fb466ee7596a3e4e2aee1fd81726;p=nethome.git diff --git a/.bashrc b/.bashrc index e962aba..f401ff2 100644 --- a/.bashrc +++ b/.bashrc @@ -69,6 +69,8 @@ _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" +_bash_profile_addpath PATH "/usr/lib/ccache" +_bash_profile_addpath PATH "/usr/lib64/ccache" [ $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" @@ -243,7 +245,7 @@ function finame { find . -false ` `; } function mkcd { mkdir -p "$1"; cd "$1"; } function pushdmk { mkdir -p "$1"; pushd "$1"; } -function rsync {(unset rsync; n rsync -v -e ssh --progress --stats --inplace --rsync-path='nice -n20 ionice -c3 rsync' "$@"; );} +function rsync {(unset rsync; n rsync -a -v -e ssh --progress --stats --inplace --rsync-path='nice -n20 ionice -c3 rsync' "$@"; );} function tohex { od -An -txC|tr -d '\n '|tr 'a-f' 'A-F';echo; } function edall { find -type f|while read -r i;do @@ -272,7 +274,6 @@ function ctags {(unset ctags function ctagsh { ctags "--c-types=+px"; } function cpan {(unset cpan; if [ $# = 0 ];then cpan;else perl -MCPAN -e "install qw($*);";fi; );} function exx { cd "`unset exx;exx "$@"|tee /proc/self/fd/2|tail -n1|sed -n 's/^extdir=//p'`"; } -function revlines { perl -e 'print reverse <>;'; } function debuginfo { if test -n "$*";then echo "$*";else cat;fi \ |xargs rpm -qf|xargs rpmquery --qf '%{SOURCERPM}\n'|sed 's/-[^-]*-[^-]*[.]src[.]rpm$/-debuginfo/'|sort -u; } function ipcsrmall { ipcs|awk '/- Shared Memory/{x="-m"}/- Semaphore/{x="-s"}/^0x/{print "ipcrm "x" "$2}'; } @@ -366,6 +367,8 @@ function rpmsrclist } function valgrind {(set -e;unset valgrind;s=~/.python.valgrind;rm -f $s;cp -p /usr/share/doc/python-devel-2.*/valgrind-python.supp $s;patch $s <$s.patch;perl -i -e 'undef $/;$_=<>;1 while s/^(?:###)?({\n)(?:###)?( *ADDRESS_IN_RANGE.*\n(?:[^}#].*\n)*)###/$1$2/gm;print;' $s;valgrind --num-callers=50 --suppressions=$s "$@";);} function yumupdate {(ulimit -v unlimited;yum makecache;yum -y --skip-broken update "$@";);} +function gitcommit { git commit -a -m .; } +function gpg {(unset gpg; http_proxy= all_proxy= HTTP_PROXY= ALL_PROXY= gpg "$@"; );} ulimit -S -c 0 set +H