[lttng-dev] [PATCH lttng-tools 5/5] Add session name completion in bash completion
simon.marchi at polymtl.ca
simon.marchi at polymtl.ca
Tue Aug 13 16:26:25 EDT 2013
From: Simon Marchi <simon.marchi at polymtl.ca>
Signed-off-by: Simon Marchi <simon.marchi at polymtl.ca>
---
extras/lttng-bash_completion | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/extras/lttng-bash_completion b/extras/lttng-bash_completion
index f5677e9..5800a0e 100644
--- a/extras/lttng-bash_completion
+++ b/extras/lttng-bash_completion
@@ -17,11 +17,7 @@
# Generates COMPREPLY with the existing session names
_lttng_complete_sessions() {
- # TODO
- # This code does nothing for now. When there is a mecanism to get the
- # existing sessions, use it to fill the sessions variable.
- local sessions
- sessions=""
+ sessions=$(lttng list --mi)
COMPREPLY=( $(compgen -W "${sessions}" -- $cur) )
return
}
--
1.7.1
More information about the lttng-dev
mailing list