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)
1151
1151
mdecrypt
1152
1152
$(ss ) _mdbook \
1153
1153
_deno _diesel _dprint _starship
1154
+ $(ss ) mfilutil \
1155
+ mrsasutil
1154
1156
$(ss ) mplayer \
1155
1157
gmplayer kplayer mencoder mplayer2
1156
1158
$(ss ) mutt \
Original file line number Diff line number Diff line change
1
+ # mfiutil completion -*- shell-script -*-
2
+
1
3
[[ $OSTYPE == * @ (freebsd| dragonflybsd| darwin| linux| solaris)* ]] || return 1
2
4
3
- _comp_cmd_mfiutil() {
5
+ _comp_cmd_mfiutil ()
6
+ {
4
7
local cur prev words cword comp_args
5
8
_comp_initialize -- " $@ " || return
6
9
@@ -11,7 +14,7 @@ _comp_cmd_mfiutil() {
11
14
* freebsd* )
12
15
options=" $options -D -t"
13
16
;;
14
- *dragonflybsd*| *solaris*)
17
+ * dragonflybsd* | * solaris* )
15
18
options=" $options -t"
16
19
;;
17
20
esac
@@ -23,8 +26,7 @@ _comp_cmd_mfiutil() {
23
26
end_of_options=1
24
27
break
25
28
;;
26
- -*)
27
- ;;
29
+ -* ) ;;
28
30
* )
29
31
end_of_options=1
30
32
break
@@ -48,7 +50,7 @@ _comp_cmd_mfiutil() {
48
50
;;
49
51
-t)
50
52
case " $OSTYPE " in
51
- *freebsd*| *dragonflybsd*)
53
+ * freebsd* | * dragonflybsd* )
52
54
_comp_compgen -- -W ' mfi mrsas'
53
55
;;
54
56
esac
@@ -105,7 +107,7 @@ _comp_cmd_mfiutil() {
105
107
esac
106
108
;;
107
109
3)
108
- case "${words[cword- 2]}.$prev" in
110
+ case " ${words[cword - 2]} .$prev " in
109
111
locate.* )
110
112
_comp_compgen -- -W ' on off'
111
113
;;
@@ -120,5 +122,5 @@ _comp_cmd_mfiutil() {
120
122
esac
121
123
;;
122
124
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