Skip to content

Commit 2520747

Browse files
committed
lvm: improve completions for lvremove
It should have a completion for `/dev/mapper` path. Signed-off-by: Siteshwar Vashisht <svashisht@redhat.com>
1 parent 92f558d commit 2520747

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

completions/lvm

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ _comp_cmd_lvm__logicalvolumes()
3333
for i in "${!COMPREPLY[@]}"; do
3434
[[ ${COMPREPLY[i]} == */control ]] && unset -v 'COMPREPLY[i]'
3535
done
36+
elif [[ $cur == /d* ]]; then
37+
COMPREPLY+="/dev/mapper"
3638
fi
3739
}
3840

0 commit comments

Comments
 (0)