-
Notifications
You must be signed in to change notification settings - Fork 0
/
_ymph
executable file
·26 lines (24 loc) · 1.24 KB
/
_ymph
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
#compdef ymph
local -a cmds
cmds=('play:resume the player' 'pause:pause the player' 'prev:jump to previous music' 'stop:stop the player' 'play-pause:toggle play/pause' 'next:skip current music')
_describe 'command' cmds
_arguments '--help[print help and exit]'\
'-h[print help and exit]'\
'--url[specify playlist url]'\
'-u[specify playlist url]'\
'--save-as[save the playlist to the given file]:filename:_files'\
'-s[save the playlist to the given file]:filename:_files'\
'--file[use the specified playlist]:filename:_files'\
'-f[use the specified playlist]:filename:_files'\
'--random[randomize the playing order]'\
'-r[randomize the playing order]'\
'--download-dir[specify the audio directory]:filename:_files'\
'-d[specify the audio directory]:filename:_files'\
'--temp-dir[specify the temporary folder]:filename:_files'\
'--normalize[normalize audio]'\
'-N[normalize audio]'\
'--show-cache[show the list of cached files]'\
'--clear-cache[clear the cache]'\
'--load-ahead[specify the number of audio files to load ahead]'\
'--search[regex search for a music in the cache]'\
'--deps-chk[check dependencies]'