[lxc-devel] [lxd/master] Fix some profile autocompletions
alejandro-perez on Github
lxc-bot at linuxcontainers.org
Thu Nov 23 13:37:07 UTC 2017
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 386 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20171123/ae7efb0b/attachment.bin>
-------------- next part --------------
From 1a8964f38fc1ebfc36b4a4495ce27405d792ff60 Mon Sep 17 00:00:00 2001
From: Alejandro Perez <alex at um.es>
Date: Thu, 23 Nov 2017 14:35:39 +0100
Subject: [PATCH] Fix some profile autocompletions
---
config/bash/lxd-client | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/config/bash/lxd-client b/config/bash/lxd-client
index 087906833..88d55fbae 100644
--- a/config/bash/lxd-client
+++ b/config/bash/lxd-client
@@ -230,6 +230,9 @@ _have lxc && {
"device")
COMPREPLY=( $(compgen -W "list show remove get set unset add" -- $cur) )
;;
+ "add"|"assign"|"remove")
+ _lxd_names
+ ;;
*)
_lxd_profiles
;;
@@ -237,7 +240,7 @@ _have lxc && {
;;
4)
case ${no_dashargs[2]} in
- "device")
+ "device"|"add"|"assign"|"remove")
_lxd_profiles
;;
*)
More information about the lxc-devel
mailing list