Sample Header Ad - 728x90

How to get shell TAB-completion to work when I redirect grep ag ack output to vim?

0 votes
0 answers
132 views
I define ag as bash function, to make usage relatively transparent
ag() { [ $# -gt 0 ] && vim -c silent\ SyntasticToggleMode -c copen -q 
Vim: Warning: Output is not to a terminal
Only way out is to kill stuck vim process from another shell. What's going wrong here and how can this bash function be upgraded (or find some alternative) to make it TAB-completion compatible ? EDIT ag doesn't ship any upstream completion
$ [git:master] complete -p ag
-bash: complete: ag: no completion specification
Asked by lkraav (1201 rep)
May 9, 2021, 06:51 PM
Last activity: May 10, 2021, 05:16 PM