File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -1151,6 +1151,8 @@ symlinks: $(DATA)
11511151 mdecrypt
11521152 $(ss ) _mdbook \
11531153 _deno _diesel _dprint _starship
1154+ $(ss ) mfilutil \
1155+ mrsasutil
11541156 $(ss ) mplayer \
11551157 gmplayer kplayer mencoder mplayer2
11561158 $(ss ) mutt \
Original file line number Diff line number Diff line change 1+ # mfiutil completion -*- shell-script -*-
2+
13[[ $OSTYPE == * @ (freebsd| dragonflybsd| darwin| linux| solaris)* ]] || return 1
24
3- _comp_cmd_mfiutil() {
5+ _comp_cmd_mfiutil ()
6+ {
47 local cur prev words cword comp_args
58 _comp_initialize -- " $@ " || return
69
@@ -11,7 +14,7 @@ _comp_cmd_mfiutil() {
1114 * freebsd* )
1215 options=" $options -D -t"
1316 ;;
14- *dragonflybsd*| *solaris*)
17+ * dragonflybsd* | * solaris* )
1518 options=" $options -t"
1619 ;;
1720 esac
@@ -23,8 +26,7 @@ _comp_cmd_mfiutil() {
2326 end_of_options=1
2427 break
2528 ;;
26- -*)
27- ;;
29+ -* ) ;;
2830 * )
2931 end_of_options=1
3032 break
@@ -48,7 +50,7 @@ _comp_cmd_mfiutil() {
4850 ;;
4951 -t)
5052 case " $OSTYPE " in
51- *freebsd*| *dragonflybsd*)
53+ * freebsd* | * dragonflybsd* )
5254 _comp_compgen -- -W ' mfi mrsas'
5355 ;;
5456 esac
@@ -105,7 +107,7 @@ _comp_cmd_mfiutil() {
105107 esac
106108 ;;
107109 3)
108- case "${words[cword- 2]}.$prev" in
110+ case " ${words[cword - 2]} .$prev " in
109111 locate.* )
110112 _comp_compgen -- -W ' on off'
111113 ;;
@@ -120,5 +122,5 @@ _comp_cmd_mfiutil() {
120122 esac
121123 ;;
122124 esac
123- }
124- complete -F _comp_cmd_mfiutil mfiutil mrsasutil
125+ } &&
126+ complete -F _comp_cmd_mfiutil mfiutil mrsasutil
You can’t perform that action at this time.
0 commit comments