From d7c7d01d6deb47c9770aafda22c09e19c0d00274 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Fri, 25 Apr 2014 12:47:37 -0700 Subject: [PATCH] improve grep functions --- .bashrc | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) 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 -- 2.30.2