From: poljar (Damir Jelić) Date: Sun, 17 Mar 2013 21:06:40 +0000 (+0100) Subject: zsh-completion: Add support for the new pactl commands. X-Git-Url: https://code.delx.au/pulseaudio/commitdiff_plain/d127e801dc8c881bb5c58b659f19c362c1dcfccf zsh-completion: Add support for the new pactl commands. This adds support for set-(sink|source)-default completion and adds toggle to the supported arguments for the mute command. --- diff --git a/shell-completion/pulseaudio-zsh-completion.zsh b/shell-completion/pulseaudio-zsh-completion.zsh index f9002ef3..4a859569 100644 --- a/shell-completion/pulseaudio-zsh-completion.zsh +++ b/shell-completion/pulseaudio-zsh-completion.zsh @@ -257,6 +257,8 @@ _pactl_completion() { 'suspend-sink: suspend or resume a sink' 'suspend-source: suspend or resume a source' 'set-card-profile: set a card profile:cards:_cards' + 'set-sink-default: set the default sink' + 'set-source-default: set the default source' 'set-sink-port: set the sink port of a sink' 'set-source-port: set the source port of a source' 'set-port-latency-offset: set a latency offset on a port' @@ -313,7 +315,7 @@ _pactl_completion() { set-card-profile) _profiles;; set-(sink|source)-port) _ports;; set-port-latency-offset) _ports;; - set-*-mute) compadd true false;; + set-*-mute) compadd true false toggle;; suspend-*) compadd true false;; list) compadd short;; move-*) _devices;;