We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b4098f commit 50f52f7Copy full SHA for 50f52f7
completions/tshark
@@ -9,6 +9,9 @@ _tshark()
9
-o*)
10
prefix=-o
11
;;
12
+ -X*)
13
+ prefix=-X
14
+ ;;
15
esac
16
17
case ${prefix:-$prev} in
@@ -103,11 +106,12 @@ _tshark()
103
106
return
104
107
105
108
-*X)
- if [[ $cur == lua_script:* ]]; then
109
+ if [[ ${cur:${#prefix}} == lua_script:* ]]; then
110
cur=${cur#*:}
111
_filedir lua
112
else
- COMPREPLY=( $( compgen -W 'lua_script:' -- "$cur" ) )
113
+ COMPREPLY=( $( compgen -P "$prefix" -W 'lua_script:' -- \
114
+ "${cur:${#prefix}}" ) )
115
[[ $COMPREPLY == *: ]] && compopt -o nospace
116
fi
117
0 commit comments