zshrc: Remove greph
authorFrank Terbeck <ft@bewatermyfriend.org>
Tue, 29 Nov 2011 11:20:39 +0000 (12:20 +0100)
committerMichael Prokop <mika@grml.org>
Tue, 6 Dec 2011 13:50:45 +0000 (14:50 +0100)
Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
doc/grmlzshrc.t2t
etc/zsh/zshrc

index c4289ff..e8bec73 100644 (file)
@@ -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).
index a2e4862..76eee68 100644 (file)
@@ -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'