From: Ian Kelling Date: Fri, 25 Apr 2014 19:47:37 +0000 (-0700) Subject: improve grep functions X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=commitdiff_plain;h=d7c7d01d6deb47c9770aafda22c09e19c0d00274 improve grep functions --- diff --git a/.bashrc b/.bashrc index 99c311c..263e6aa 100644 --- a/.bashrc +++ b/.bashrc @@ -196,15 +196,14 @@ t() { } -grp() { - command grep --binary-files=without-match --color=auto "$@" -} gr() { - grep -i -r "$@" + grep -i --binary-files=without-match --color=auto "$@" } - +gr() { + gr -r "$@" +} @@ -506,11 +505,6 @@ pfind() { #find *$1* in $PATH find "${pathArray[@]}" -iname "*$1*" } -pstree() { - ps -ejH "$@" -} - - pwd() { # do pwd + some other info. echo "$(ll -d "$PWD") $USER@$HOSTNAME $(date +%r)" @@ -712,7 +706,6 @@ hl() { # history limit. Write extra history to archive file. perm_fix ${HISTFILE}_archive history -c history -r - history } # run hl when bash exits normally trap hl EXIT