X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=.bashrc;h=a2c27a5d9ec8c1b6deefef7320b8453c7a668777;hp=7699036915aa7537a4bee92c4f18004d25c3d4c6;hb=8bea06d29fc431ffa0c97d7e0870956c39ac675b;hpb=cbf98eadbcb5cd378a0cc26ffd00bcd783d2649c diff --git a/.bashrc b/.bashrc index 7699036..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,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