Add completions for ag + rspec
This commit is contained in:
parent
939d375373
commit
4d835f0b22
7
zsh/completions/_ag
Executable file
7
zsh/completions/_ag
Executable 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
3
zsh/completions/_rspec
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#compdef rspec
|
||||||
|
|
||||||
|
compadd -P spec/ $(ls spec/**/*_spec.rb | sed -E "s/spec\///g")
|
Loading…
Reference in a new issue