From 2da43e7f8590b45d7d29dec8f5d2997837bcd702 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 22 May 2009 13:32:42 +0200 Subject: [PATCH] add lgrep function --- .zsh/zshrc/30_aliases | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.zsh/zshrc/30_aliases b/.zsh/zshrc/30_aliases index 16005bf..51be089 100644 --- a/.zsh/zshrc/30_aliases +++ b/.zsh/zshrc/30_aliases @@ -101,6 +101,11 @@ alias ldl='lless ~log/daemon.log' alias tkl='ltail kern.log' alias lkl='lless ~log/kern.log' +function lgrep() { + local pattern="$1"; shift + eval egrep "'$pattern'" "~log/${(j: ~log/:)@}" +} + alias px='ps afux' alias mps='ps -ao user,pcpu,start,command' -- 2.39.5