improve grep functions
authorIan Kelling <ian@iankelling.org>
Fri, 25 Apr 2014 19:47:37 +0000 (12:47 -0700)
committerIan Kelling <ian@iankelling.org>
Thu, 4 May 2017 23:40:14 +0000 (16:40 -0700)
.bashrc

diff --git a/.bashrc b/.bashrc
index 99c311cbda9c45c78e2aba30735711ecc9005894..263e6aabb59fbf7004f7d544baf4f310a51adfcc 100644 (file)
--- 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