lvm volumes: Complete on /dev/mapper/* (RedHat: #851787).
This is done only if user has typed it though.
This commit is contained in:
parent
b93e3999b0
commit
8e63eafb83
@ -16,6 +16,13 @@ _logicalvolumes()
|
||||
{
|
||||
COMPREPLY=( $(compgen -W "$( lvscan 2>/dev/null | \
|
||||
sed -n -e "s|^.*'\(.*\)'.*$|\1|p" )" -- "$cur" ) )
|
||||
if [[ $cur == /dev/mapper/* ]]; then
|
||||
_filedir
|
||||
local i
|
||||
for i in ${!COMPREPLY[@]}; do
|
||||
[[ ${COMPREPLY[i]} == */control ]] && unset COMPREPLY[i]
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
_units()
|
||||
|
Loading…
x
Reference in New Issue
Block a user