From: Simon Marchi <[email protected]>
Signed-off-by: Simon Marchi <[email protected]>
---
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
_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev