perf completion: Introduce a layer of indirection
authorRamkumar Ramachandra <artagnon@gmail.com>
Sun, 17 Nov 2013 16:13:23 +0000 (21:43 +0530)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 27 Nov 2013 17:58:35 +0000 (14:58 -0300)
commit2cf025e69543f5f4aa68e8549d60680515fef5ad
treee725c9d6c1e057a0a7dfa538a52cce49c5268624
parentbf80669e4f689f181f23a54dfe2a0f264147ad67
perf completion: Introduce a layer of indirection

Define the variables cur, words, cword, and prev outside the main
completion function so that we have a chance to override it when we
introduce zsh support.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Link: http://lkml.kernel.org/r/1384704807-15779-2-git-send-email-artagnon@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/bash_completion