-#compdef pulseaudio pactl pacmd pacat paplay parecord padsp pasuspender
+#compdef pulseaudio pactl pacmd pacat paplay parec parecord padsp pasuspender
_devices() {
local -a _device_list
move-source-output) cmd=('sources');;
esac
- elif [[ $service == (pacat|paplay|parecord) ]]; then
+ elif [[ $service == (pacat|paplay|parec|parecord) ]]; then
case $words[$((CURRENT))] in
--device=*)
if [[ $words == *(--playback|-p)[[:space:]]* ||
$service == paplay ]]; then
cmd=('sinks')
elif [[ $words == *(--record|-r)[[:space:]]* ||
- $service == parecord ]]; then
+ $service == (parec|parecord) ]]; then
cmd=('sources')
else
cmd=('sinks' 'sources')
$service == paplay ]]; then
cmd=('sinks')
elif [[ $words == *(--record|-r)[[:space:]]* ||
- $service == parecord ]]; then
+ $service == (parec|parecord) ]]; then
cmd=('sources')
else
cmd=('sinks' 'sources')
pacmd) _pacmd_completion;;
pacat) _pacat_completion;;
paplay)_pacat_completion;;
+ parec) _pacat_completion;;
parecord)_pacat_completion;;
padsp) _padsp_completion;;
pasuspender) _pasuspender_completion;;