summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--completions/emerge6
1 files changed, 6 insertions, 0 deletions
diff --git a/completions/emerge b/completions/emerge
index d7da227..03cc503 100644
--- a/completions/emerge
+++ b/completions/emerge
@@ -26,6 +26,12 @@ _emerge()
return 0
fi
+ if [[ ${cur} =~ ^@ ]] ; then
+ local SET_LIST=($(emerge --list-sets))
+ COMPREPLY=($(compgen -W '${SET_LIST[@]/#/@}' ${cur}))
+ return 0
+ fi
+
# find action
for x in ${COMP_LINE} ; do
if [[ ${x} =~ ^(system|world)$ ]] || [[ ${x} =~ -[CPcs] ]] || \