fish/functions/hi.fish @ 3d37ca22c5c5 bpollack/use-command-to-explicitly-call-ag-and-us-1442506830050

Use command to explicitly call ag, and use compound if block
author Benjamin Pollack <benjamin@bitquabit.com>
date Thu, 17 Sep 2015 16:20:42 +0000
parents d66bfb2537fe
children (none)
function hi --argument pattern -d "Highlight a pattern in a stream of text"
    grep -E --color=always --line-buffered "$pattern|\$"
end