]> code.delx.au - pulseaudio/commitdiff
zsh-completion: Fix pacat completion.
authorpoljar (Damir Jelić) <poljarinho@gmail.com>
Sun, 17 Mar 2013 21:06:41 +0000 (22:06 +0100)
committerTanu Kaskinen <tanuk@iki.fi>
Mon, 18 Mar 2013 19:28:21 +0000 (21:28 +0200)
pacat --format needs = (--format=).
Also pacat should complete files firstly and command line arguments
secondly.

shell-completion/pulseaudio-zsh-completion.zsh

index 4a859569f04e5917c52537f598c25d5bbf19fc1a..d73b74d79d3d303f42abbbf803a79f6df200fc0d 100644 (file)
@@ -470,8 +470,9 @@ _pacat_completion() {
         '--property=[set the specified property]:property' \
         '--raw[record/play raw PCM data]' \
         '--passthrough[passtrough data]' \
-        '--file-format[record/play formatted PCM data]:format:_pacat_file_formats' \
+        '--file-format=[record/play formatted PCM data]:format:_pacat_file_formats' \
         '--list-file-formats[list available formats]' \
+        '::files:_files' \
 }
 
 # TODO log-target file completion