X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=.bashrc;h=a2c27a5d9ec8c1b6deefef7320b8453c7a668777;hp=35df518ca878df09594c8ad6a069c36089c352e2;hb=f38421b9ed24431cadd088eb0063cf23eabcdd57;hpb=4ce5f6474041bb9e873bb00a03138c1847e9d765 diff --git a/.bashrc b/.bashrc index 35df518..a2c27a5 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 @@ -237,7 +238,6 @@ 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