diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-11-16 12:20:26 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-11-16 13:00:31 +0100 |
commit | 07e8bdefdbd2a0a4fe59008b286303f053ba9509 (patch) | |
tree | cbf666b2324defe3517b441f372f6ade20cde363 /shell-completion | |
parent | analyze: clarify return value (diff) | |
download | systemd-07e8bdefdbd2a0a4fe59008b286303f053ba9509.tar.xz systemd-07e8bdefdbd2a0a4fe59008b286303f053ba9509.zip |
shell-completion: fix indentation
Diffstat (limited to 'shell-completion')
-rw-r--r-- | shell-completion/zsh/_udevadm | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/shell-completion/zsh/_udevadm b/shell-completion/zsh/_udevadm index eac56c7048..14efe24808 100644 --- a/shell-completion/zsh/_udevadm +++ b/shell-completion/zsh/_udevadm @@ -103,20 +103,20 @@ _udevadm_test-builtin(){ (( $+functions[_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)}" ) dev_tmp=( "${(@)${(@)tmp%% *}:#none}" ) mp_tmp=( "${(@)${(@)tmp#* }%% *}" ) - local MATCH - mp_tmp=("${(@q)mp_tmp//(#m)\\[0-7](#c3)/${(#)$(( 8#${MATCH[2,-1]} ))}}") - dpath_tmp=( "${(@Mq)dev_tmp:#/*}" ) - dev_tmp=( "${(@q)dev_tmp:#/*}" ) + local MATCH + mp_tmp=("${(@q)mp_tmp//(#m)\\[0-7](#c3)/${(#)$(( 8#${MATCH[2,-1]} ))}}") + dpath_tmp=( "${(@Mq)dev_tmp:#/*}" ) + dev_tmp=( "${(@q)dev_tmp:#/*}" ) - _alternative \ - 'device-paths: device path:compadd -a dpath_tmp' \ - 'directories:mount point:compadd -a mp_tmp' + _alternative \ + 'device-paths: device path:compadd -a dpath_tmp' \ + 'directories:mount point:compadd -a mp_tmp' } (( $+functions[_udevadm_commands] )) || |