File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,7 @@ _comp_cmd_strings()
47
47
[[ ${COMPREPLY-} == * = ]] && compopt -o nospace
48
48
return
49
49
elif [[ $cur == @* ]]; then
50
- cur=${cur: 1}
51
- _comp_compgen_filedir
50
+ _comp_compgen -c " ${cur: 1} " filedir
52
51
COMPREPLY=(" ${COMPREPLY[@]/#/@ } " )
53
52
return
54
53
fi
Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ _comp_cmd_tshark()
20
20
;;
21
21
-o* )
22
22
if [[ $cur == * :* ]]; then
23
- cur=${cur#*: }
24
- _comp_compgen_filedir
23
+ _comp_compgen -c " ${cur#*: } " filedir
25
24
else
26
25
[[ -v _comp_cmd_tshark__prefs ]] ||
27
26
_comp_cmd_tshark__prefs=" $( " $1 " -G defaultprefs 2> /dev/null | command sed -ne ' s/^#\{0,1\}\([a-z0-9_.-]\{1,\}:\).*/\1/p' |
@@ -104,8 +103,7 @@ _comp_cmd_tshark()
104
103
;;
105
104
-* X)
106
105
if [[ ${cur: ${# prefix} } == lua_script:* ]]; then
107
- cur=${cur#*: }
108
- _comp_compgen_filedir lua
106
+ _comp_compgen -c " ${cur#*: } " filedir lua
109
107
else
110
108
COMPREPLY=($( compgen -P " $prefix " -W ' lua_script:' -- \
111
109
" ${cur: ${# prefix} } " ) )
Original file line number Diff line number Diff line change @@ -55,8 +55,7 @@ _comp_cmd_tune2fs()
55
55
return
56
56
fi
57
57
58
- : " ${cur:=/ dev/ } "
59
- _comp_compgen_filedir
58
+ _comp_compgen -c " ${cur:-/ dev/ } " filedir
60
59
} &&
61
60
complete -F _comp_cmd_tune2fs tune2fs
62
61
You can’t perform that action at this time.
0 commit comments