fish/functions/ag.fish @ 6f429206629f
Fucking broken garbage hg-git is hosed for https mercurial urls and I have no idea why
author |
Steve Losh <steve@stevelosh.com> |
date |
Sat, 02 Feb 2019 15:58:34 -0500 |
parents |
0d6656688318 |
children |
(none) |
function ag -d "Run Ag with appropriate options." --wraps "ag"
if begin test -f '.agignore'; and grep -q 'pragma: skipvcs' '.agignore'; end
# If .agignore contains pragma: skipvcs, then we'll run ag in
# "disregard .gitignore/.hgignore/svn:ignore" mode. This lets us
# still search in files the VCS has ignored.
command ag --search-files -U $argv
else
command ag --search-files $argv
end
end