X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=.bashrc;h=f876225d71201c681bf11168781c7ee8641989d1;hp=7699036915aa7537a4bee92c4f18004d25c3d4c6;hb=9e9d0a1f2d45c9d02a6c885f78415e44524ad205;hpb=cbf98eadbcb5cd378a0cc26ffd00bcd783d2649c diff --git a/.bashrc b/.bashrc index 7699036..f876225 100644 --- a/.bashrc +++ b/.bashrc @@ -116,11 +116,12 @@ unalias 2>/dev/null du # -h unalias 2>/dev/null ls # --color=auto unalias 2>/dev/null l. # ls -d .* --color=auto unalias 2>/dev/null ll # ls -l --color=auto +unalias 2>/dev/null grep # grep --color=auto -# Aliases would get processed during the parsing of this script file! +# Prevent processing of aliases during the parsing of this script file by +# `eval': eval ' function grep {(unset grep; ( ulimitme; grep "$@"; ); );} - function ls {(unset ls; ( ls -bF "$@"; ); );} function l { ls -lbF "$@"; } if which vim &>/dev/null;then @@ -149,7 +150,7 @@ eval ' function disass { objdump -D --target=binary --architecture=i386 "$@"; } function cal {(unset cal; ( cal -m "$@"; ); );} function vncreadonly { vncviewer -FullColor -Shared -ViewOnly "$@"; } - function diff {(unset diff; ( diff -up "$@"; ); );} + function diff {(unset diff; ( diff -dup "$@"; ); );} 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; } @@ -237,13 +238,12 @@ for i in "-m 100000" "-d 150000" "-v 200000";do # Prevent: ulimit: -m 100000 -d 150000 -v 200000: invalid number # by forcing our known $IFS value; eval(1) is needed to take $IFS to effect: function ulimitme { IFS=" " eval "ulimit $ULIMITME_OPTS"; } -function grep {(unset grep; ( ulimitme; grep "$@"; ); );} function finame { find . -false ` awk