From: Frank Terbeck Date: Tue, 29 Nov 2011 11:20:39 +0000 (+0100) Subject: zshrc: Remove greph X-Git-Tag: v0.5.0~56 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=8e9aced469c1999ff6faec5ac2b91cfdb6510f3b zshrc: Remove greph Signed-off-by: Frank Terbeck --- diff --git a/doc/grmlzshrc.t2t b/doc/grmlzshrc.t2t index c4289ff..e8bec73 100644 --- a/doc/grmlzshrc.t2t +++ b/doc/grmlzshrc.t2t @@ -598,9 +598,6 @@ Searches the arguments on Google Groups, a web to USENET gateway. : **google()** Searches the search engine Google using arguments as search string. -: **greph()** -Searches the zsh command history for a regular expression. - : **hex()** Prints the hexadecimal representation of the number supplied as argument (base ten only). diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index a2e4862..76eee68 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2872,11 +2872,6 @@ modified() { # modified() was named new() in earlier versions, add an alias for backwards compatibility check_com new || alias new=modified -#f5# Grep in history -greph() { - emulate -L zsh - history 0 | grep $1 -} # use colors when GNU grep with color-support #a2# Execute \kbd{grep -{}-color=auto} (grep --help 2>/dev/null |grep -- --color) >/dev/null && alias grep='grep --color=auto'