Add completions for ag + rspec

This commit is contained in:
Henrik Lissner 2016-03-03 11:04:04 -05:00
parent 939d375373
commit 4d835f0b22
2 changed files with 10 additions and 0 deletions

7
zsh/completions/_ag Executable file
View file

@ -0,0 +1,7 @@
#compdef ag
if (( CURRENT == 2 )); then
compadd $(cut -f 1 tmp/tags .git/tags 2>/dev/null)
else;
_files
fi

3
zsh/completions/_rspec Executable file
View file

@ -0,0 +1,3 @@
#compdef rspec
compadd -P spec/ $(ls spec/**/*_spec.rb | sed -E "s/spec\///g")