summaryrefslogtreecommitdiff
path: root/completions/tune2fs
diff options
context:
space:
mode:
Diffstat (limited to 'completions/tune2fs')
-rw-r--r--completions/tune2fs18
1 files changed, 9 insertions, 9 deletions
diff --git a/completions/tune2fs b/completions/tune2fs
index ab79cd51..66d629c4 100644
--- a/completions/tune2fs
+++ b/completions/tune2fs
@@ -10,12 +10,12 @@ _tune2fs()
return
;;
-*e)
- COMPREPLY=( $(compgen -W 'continue remount-ro panic' -- "$cur") )
+ COMPREPLY=($(compgen -W 'continue remount-ro panic' -- "$cur"))
return
;;
-*g)
_gids
- COMPREPLY=( $(compgen -g -W '${COMPREPLY[@]}' -- "$cur") )
+ COMPREPLY=($(compgen -g -W '${COMPREPLY[@]}' -- "$cur"))
return
;;
-*M)
@@ -26,7 +26,7 @@ _tune2fs()
local -a opts=(^debug ^bsdgroups ^user_xattr ^acl ^uid16
^journal_data ^journal_data_ordered ^journal_data_writeback
^nobarrier ^block_validity ^discard ^nodelalloc)
- COMPREPLY=( $(compgen -W '${opts[@]} ${opts[@]#^}' -- "$cur") )
+ COMPREPLY=($(compgen -W '${opts[@]} ${opts[@]#^}' -- "$cur"))
return
;;
-*O)
@@ -34,28 +34,28 @@ _tune2fs()
^filetype ^flex_bg ^has_journal ^huge_file ^large_file
^metadata_csum ^mmp ^project ^quota ^read-only ^resize_inode
^sparse_super ^uninit_bg)
- COMPREPLY=( $(compgen -W '${opts[@]} ${opts[@]#^}' -- "$cur") )
+ COMPREPLY=($(compgen -W '${opts[@]} ${opts[@]#^}' -- "$cur"))
return
;;
-*u)
_uids
- COMPREPLY=( $(compgen -u -W '${COMPREPLY[@]}' -- "$cur") )
+ COMPREPLY=($(compgen -u -W '${COMPREPLY[@]}' -- "$cur"))
return
;;
-*U)
- COMPREPLY=( $(compgen -W 'clear random time' -- "$cur") )
+ COMPREPLY=($(compgen -W 'clear random time' -- "$cur"))
return
;;
esac
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '$(_parse_usage "$1")' -- "$cur") )
+ if [[ $cur == -* ]]; then
+ COMPREPLY=($(compgen -W '$(_parse_usage "$1")' -- "$cur"))
return
fi
cur=${cur:=/dev/}
_filedir
} &&
-complete -F _tune2fs tune2fs
+ complete -F _tune2fs tune2fs
# ex: filetype=sh