summaryrefslogtreecommitdiff
path: root/completions/vncviewer
diff options
context:
space:
mode:
Diffstat (limited to 'completions/vncviewer')
-rw-r--r--completions/vncviewer31
1 files changed, 13 insertions, 18 deletions
diff --git a/completions/vncviewer b/completions/vncviewer
index 46d6c617..a1c16d69 100644
--- a/completions/vncviewer
+++ b/completions/vncviewer
@@ -27,8 +27,8 @@ _tightvncviewer()
return 0
;;
-encodings)
- COMPREPLY=( $( compgen -W 'copyrect tight hextile zlib \
- corre rre raw' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W 'copyrect tight hextile zlib corre rre
+ raw' -- "$cur" ) )
return 0
;;
-via)
@@ -39,11 +39,10 @@ _tightvncviewer()
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '-help -listen -via -shared -noshared\
- -viewonly -fullscreen -noraiseonbeep -passwd -encodings\
- -bgr233 -owncmap -truecolour -truecolor -depth \
- -compresslevel -quality -nojpeg -nocursorshape \
- -x11cursor' -- $cur ) )
+ COMPREPLY=( $( compgen -W '-help -listen -via -shared -noshared
+ -viewonly -fullscreen -noraiseonbeep -passwd -encodings -bgr233
+ -owncmap -truecolour -truecolor -depth -compresslevel -quality
+ -nojpeg -nocursorshape -x11cursor' -- "$cur" ) )
else
_known_hosts_real "$cur"
fi
@@ -68,7 +67,7 @@ _xvnc4viewer()
;;
# -PreferredEncoding
-[pP][rR][eE][fF][eE][rR][rR][eE][dD][eE][nN][cC][oO][dD][iI][nN][gG])
- COMPREPLY=( $( compgen -W 'zrle hextile raw' -- $cur ) )
+ COMPREPLY=( $( compgen -W 'zrle hextile raw' -- "$cur" ) )
return 0
;;
# -via
@@ -80,16 +79,12 @@ _xvnc4viewer()
if [[ "$cur" == -* || "$cur" == --* ]]; then
# Default to vncviewer camelcase options, see `vncviewer -help'
- local dash options=( \
- AcceptClipboard AutoSelect DebugDelay display \
- DotWhenNoCursor FullColor FullColour FullScreen \
- geometry help listen Log \
- LowColourLevel MenuKey name Parent \
- passwd PasswordFile PointerEventInterval PreferredEncoding \
- SendClipboard SendPrimary Shared UseLocalCursor \
- via ViewOnly WMDecorationHeight WMDecorationWidth \
- ZlibLevel \
- )
+ local dash options=( AcceptClipboard AutoSelect DebugDelay display
+ DotWhenNoCursor FullColor FullColour FullScreen geometry help
+ listen Log LowColourLevel MenuKey name Parent passwd PasswordFile
+ PointerEventInterval PreferredEncoding SendClipboard SendPrimary
+ Shared UseLocalCursor via ViewOnly WMDecorationHeight
+ WMDecorationWidth ZlibLevel )
[[ "$cur" == --* ]] && dash=-- || dash=-
local option oldNoCaseMatch=$(shopt -p nocasematch)