From: Nicolas Boisselier Date: Sun, 15 Mar 2015 23:37:46 +0000 (+0000) Subject: nb-hl X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=bf888c56f5644f7aa263ad2b161c67499f3a9c06;p=nb.git nb-hl --- diff --git a/etc/bashrc.function b/etc/bashrc.function index 16457657..dbe2cd35 100644 --- a/etc/bashrc.function +++ b/etc/bashrc.function @@ -229,3 +229,7 @@ s/\s*\}\s*//; nb-rb() { ruby -r/etc/puppet/modules/nb/lib/nb.rb -e "$@" } + +nb-hl() { + cat | grep --color=auto -E "(^|($@))" +}