X-Git-Url: http://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=.bashrc;h=599c51a4acdac388787c5d4425af8780f78a43bc;hp=e318e7a618cafa8c8bb7d403d6cb9d5269d28731;hb=a0e5c68a74201c95ea9ec74f8d3510eeda3a71d5;hpb=e7eb1fdabcbcebf79f9eb5fa9d62a4120b33d91e diff --git a/.bashrc b/.bashrc index e318e7a..599c51a 100644 --- a/.bashrc +++ b/.bashrc @@ -157,6 +157,7 @@ eval ' function rpmbuildlocal { nice rpmbuild --define "_topdir $PWD" --define "_builddir $PWD" --define "_rpmdir $PWD" --define "_sourcedir $PWD" --define "_specdir $PWD" --define "_srcrpmdir $PWD" --define "_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" "$@"; rmdir &>/dev/null BUILDROOT; } function gdbn { gdb -nx --command=~/.gdbinit "$@"; } function hd { od -Ax -tx1; } + function wget {(unset wget; ( wget --no-check-certificate "$@"; ); );} ' export IGNOREEOF=10 @@ -189,6 +190,12 @@ export HISTFILESIZE="$HISTSIZE" export GDBHISTFILE="$HOME/.gdb_history" export CVS_RSH="ssh" export TZ=":/usr/share/zoneinfo/Europe/Prague" +MAKEFLAGS= +cpus="`getconf _NPROCESSORS_ONLN`" +if [ -n "$cpus" ];then + MAKEFLAGS="$MAKEFLAGS -j$[$cpus+1]" +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