]> git.proxmox.com Git - mirror_lxc.git/blobdiff - config/bash/lxc.in
spelling: output
[mirror_lxc.git] / config / bash / lxc.in
index cbd1b79fe686e1095813a24eb29e60122bb1b670..43056882f2ee85c6371dd864255118194c1aef78 100644 (file)
@@ -1,4 +1,4 @@
-have lxc-start && {
+_have lxc-start && {
     _lxc_names() {
         COMPREPLY=( $( compgen -W "$( lxc-ls )" "$cur" ) )
     }
@@ -11,6 +11,10 @@ have lxc-start && {
         COMPREPLY=( $( compgen -W "$(ls @LXCTEMPLATEDIR@/ | sed -e 's|^lxc-||' )" "$cur" ) )
     }
 
+    _lxc_backing_stores() {
+        COMPREPLY=( $( compgen -W "dir lvm loop btrfs zfs rbd best" "$cur" ) )
+    }
+
     _lxc_generic_n() {
         local cur prev
 
@@ -59,6 +63,11 @@ have lxc-start && {
                 _lxc_templates "$cur"
                 return 0
             ;;
+
+            -B)
+                _lxc_backing_stores "$cur"
+                return 0
+            ;;
         esac
 
         return 1
@@ -98,6 +107,5 @@ have lxc-start && {
 
     complete -o default -F _lxc_generic_t lxc-create
 
-    complete -o default -F _lxc_generic_o lxc-clone
-    complete -o default -F _lxc_generic_o lxc-start-ephemeral
+    complete -o default -F _lxc_generic_o lxc-copy
 }