summaryrefslogtreecommitdiff
path: root/shell-completion
diff options
context:
space:
mode:
Diffstat (limited to 'shell-completion')
-rw-r--r--shell-completion/zsh/_pulseaudio4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell-completion/zsh/_pulseaudio b/shell-completion/zsh/_pulseaudio
index 243c1b4fb..6ff8ec132 100644
--- a/shell-completion/zsh/_pulseaudio
+++ b/shell-completion/zsh/_pulseaudio
@@ -2,9 +2,11 @@
_set_remote() {
for (( i = 0; i < ${#words[@]}; i++ )) do
- if [[ ${words[$i]} == -s ]]; then
+ if [[ ${words[$i]} == -s || ${words[$i]} == --server ]]; then
remote="-s ${words[$i+1]}"
break;
+ elif [[ ${words[$i]} == --server=* ]]; then
+ remote=${words[$i]}
fi
done
}