mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
shell-completion: fix indentation
This commit is contained in:
parent
b11b17f408
commit
07e8bdefdb
@ -103,20 +103,20 @@ _udevadm_test-builtin(){
|
|||||||
|
|
||||||
(( $+functions[_udevadm_mounts] )) ||
|
(( $+functions[_udevadm_mounts] )) ||
|
||||||
_udevadm_mounts(){
|
_udevadm_mounts(){
|
||||||
local dev_tmp dpath_tmp mp_tmp mline
|
local dev_tmp dpath_tmp mp_tmp mline
|
||||||
|
|
||||||
tmp=( "${(@f)$(< /proc/self/mounts)}" )
|
tmp=( "${(@f)$(< /proc/self/mounts)}" )
|
||||||
dev_tmp=( "${(@)${(@)tmp%% *}:#none}" )
|
dev_tmp=( "${(@)${(@)tmp%% *}:#none}" )
|
||||||
mp_tmp=( "${(@)${(@)tmp#* }%% *}" )
|
mp_tmp=( "${(@)${(@)tmp#* }%% *}" )
|
||||||
|
|
||||||
local MATCH
|
local MATCH
|
||||||
mp_tmp=("${(@q)mp_tmp//(#m)\\[0-7](#c3)/${(#)$(( 8#${MATCH[2,-1]} ))}}")
|
mp_tmp=("${(@q)mp_tmp//(#m)\\[0-7](#c3)/${(#)$(( 8#${MATCH[2,-1]} ))}}")
|
||||||
dpath_tmp=( "${(@Mq)dev_tmp:#/*}" )
|
dpath_tmp=( "${(@Mq)dev_tmp:#/*}" )
|
||||||
dev_tmp=( "${(@q)dev_tmp:#/*}" )
|
dev_tmp=( "${(@q)dev_tmp:#/*}" )
|
||||||
|
|
||||||
_alternative \
|
_alternative \
|
||||||
'device-paths: device path:compadd -a dpath_tmp' \
|
'device-paths: device path:compadd -a dpath_tmp' \
|
||||||
'directories:mount point:compadd -a mp_tmp'
|
'directories:mount point:compadd -a mp_tmp'
|
||||||
}
|
}
|
||||||
|
|
||||||
(( $+functions[_udevadm_commands] )) ||
|
(( $+functions[_udevadm_commands] )) ||
|
||||||
|
Loading…
Reference in New Issue
Block a user