1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
# (C) 2025 unrealapex
# Completion script for cmus-remote
function completion/cmus-remote {
typeset OPTIONS ARGOPT PREFIX
OPTIONS=( #>#
"--server; connect using socket SOCKET instead of \$XDG_RUNTIME_DIR/cmus-socket"
"--passwd; password to use for tcp/ip connection"
"--help; display usage information and exit"
"--version; display version information and exit"
"p --play; start playing"
"u --pause; toggle pause"
"U --pause-playback; pause if currently playing"
"s --stop; stop playing"
"n --next; skip forward in playlist"
"r --prev; skip backward in playlist"
"R --repeat; toggle repeat"
"S --shuffle; toggle shuffle"
"v --volume; change volume"
"k --seek; seek"
"f --file; play from file"
"Q; get player status information"
"l --library; modify library instead of playlist"
"P --playlist; modify playlist (default)"
"q --queue; modify play queue instead of playlist"
"c --clear; clear playlist, library (-l), or play queue (-q)"
"C --raw; treat arguments (instead of stdin) as raw commands"
) #<#
command -f completion//parseoptions -es
case $ARGOPT in
(-)
command -f completion//completeoptions
;;
esac
}
# vim: set ft=sh ts=8 sts=8 sw=8 et:
|