summaryrefslogtreecommitdiff
path: root/shell-completion/pulseaudio-zsh-completion.zsh
diff options
context:
space:
mode:
authorpoljar (Damir Jelić) <poljarinho@gmail.com>2013-03-17 22:06:40 +0100
committerTanu Kaskinen <tanuk@iki.fi>2013-03-18 21:25:59 +0200
commitd127e801dc8c881bb5c58b659f19c362c1dcfccf (patch)
tree72bb9e8eae5048af1be1eb2c4c7177268d4209a6 /shell-completion/pulseaudio-zsh-completion.zsh
parent993e756e13903173b8d9a6265bcfa2c38bdad27e (diff)
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.
Diffstat (limited to 'shell-completion/pulseaudio-zsh-completion.zsh')
-rw-r--r--shell-completion/pulseaudio-zsh-completion.zsh4
1 files changed, 3 insertions, 1 deletions
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;;