Created
April 29, 2011 06:25
-
-
Save trapd00r/947942 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#compdef pimpd2 | |
local arguments curcontext="$curcontext" | |
typeset -A opt_args | |
arguments=( | |
{-cp,--copy}'[Copy song]' | |
{-cpa,--copy}'[Copy song]' | |
{-np,--now-playing}'[basic song info on a single line]' | |
{-i,--info}'[full song info]' | |
{-cp,--copy}'[copy the current track to destination]' | |
{-cpa,--copy-album}'[copy the current album to destination]' | |
{-sh,--shell}'[spawn the interactive shell]' | |
{-q,--queue}'[queue tracks]' | |
{-pls,--playlist}'[show the current playlist]' | |
'--playlists[list all known playlists]' | |
{-af,--add-files}'[ add files to playlist]' | |
{-a,--add-playlist}'[add playlist]' | |
{-r,--randomize}'[randomize a new playlist with n tracks]' | |
{-ra,--random-album}'[add n random full albums]' | |
{-rma,--rmalbum}'[remove album matching pattern from playlist]' | |
{-da,--delete-album}'[delete the current album from disk]' | |
{-f,--love}'[love song]' | |
'--loved[check if the current song is loved]' | |
{-u,--unlove}'[unlove songs matching pattern]' | |
{-lsp,--lsplaylist}'[list songs in playlists]' | |
{-spl,--search-playlist}'[search the current playlist for str]' | |
{-lsa,--songs}'[list songs on album]' | |
{-l,--albums}'[list albums by artist]' | |
{-sdb,--search-db}'[search database for pattern]' | |
{-sar,--search-artist}'[search database for artist]' | |
{-sal,--search-album}'[search database for album]' | |
{-set,--search-title}'[search database for title]' | |
'--slove[search the database with loved songs for PATTERN]' | |
{-n,--next}'[next track in playlist]' | |
{-p,--previous}'[previous track in playlist]' | |
{-cl,--clear}'[clear the playlist]' | |
{-cr,--crop}'[remove all songs but the current one from playlist]' | |
{-x,--xfade}'[set crossfade]' | |
'--pause[toggle playback status]' | |
'--repeat[toggle repeat mode]' | |
'--random[toggle random mode]' | |
'--play[start playback (locally and remote)]' | |
{-s,--stop}'[stop playback (locally and remote)]' | |
{-k,--kill}'[stop playback (locally)]' | |
{ | |
{-h,--help}'[show the help and exit]' | |
{-m,--man}'[show the manual and exit]' | |
{-v,--version}'[show version info and exit]' | |
) | |
_arguments -s $arguments \ | |
&& return 0 | |
return 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment