Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
7ded3c18
Unverified
Commit
7ded3c18
authored
Dec 03, 2017
by
Stéphane Graber
Committed by
GitHub
Dec 03, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1988 from abbasally5/feature-improve-bash-completion-1236
Add bash completion to list backing store types for lxc-create -B
parents
152c9800
caba1094
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
lxc.in
config/bash/lxc.in
+9
-0
No files found.
config/bash/lxc.in
View file @
7ded3c18
...
@@ -11,6 +11,10 @@ _have lxc-start && {
...
@@ -11,6 +11,10 @@ _have lxc-start && {
COMPREPLY=( $( compgen -W "$(ls @LXCTEMPLATEDIR@/ | sed -e 's|^lxc-||' )" "$cur" ) )
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() {
_lxc_generic_n() {
local cur prev
local cur prev
...
@@ -59,6 +63,11 @@ _have lxc-start && {
...
@@ -59,6 +63,11 @@ _have lxc-start && {
_lxc_templates "$cur"
_lxc_templates "$cur"
return 0
return 0
;;
;;
-B)
_lxc_backing_stores "$cur"
return 0
;;
esac
esac
return 1
return 1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment