* Remove unnecessary `uniq` * Look for tags in tmp/tags or .git/tags * Send errors to /dev/null if the file(s) do not exist See http://tbaggery.com/2011/08/08/effortless-ctags-with-git.html for an explanation behind the reasoning for .git/tags.
7 lines
112 B
Text
7 lines
112 B
Text
#compdef ag
|
|
|
|
if (( CURRENT == 2 )); then
|
|
compadd $(cut -f 1 tmp/tags .git/tags 2>/dev/null)
|
|
else;
|
|
_files
|
|
fi
|