Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
: **google()**
Searches the search engine Google using arguments as search string.
: **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).
: **hex()**
Prints the hexadecimal representation of the number supplied as argument
(base ten only).
# modified() was named new() in earlier versions, add an alias for backwards compatibility
check_com new || alias new=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'
# 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'