[pulseaudio-discuss] [PATCH 3/3] zsh-completion: Fix pacat completion.

poljar (Damir Jelić) poljarinho at gmail.com
Sun Mar 17 14:06:41 PDT 2013


pacat --format needs = (--format=).
Also pacat should complete files firstly and command line arguments
secondly.
---
 shell-completion/pulseaudio-zsh-completion.zsh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/shell-completion/pulseaudio-zsh-completion.zsh b/shell-completion/pulseaudio-zsh-completion.zsh
index 4a85956..d73b74d 100644
--- a/shell-completion/pulseaudio-zsh-completion.zsh
+++ b/shell-completion/pulseaudio-zsh-completion.zsh
@@ -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
-- 
1.8.2



More information about the pulseaudio-discuss mailing list