diff --git a/completion/bash/m b/completion/bash/m index 3abb045..39facda 100644 --- a/completion/bash/m +++ b/completion/bash/m @@ -59,7 +59,7 @@ _m_sub () { subcommands=(help) ;; itunes) - subcommands=(status play pause next prev mute unmute vol stop quit help) + subcommands=(status state progress play pause next prev mute unmute repeat shuffle vol stop quit help) ;; lock) subcommands=(help) diff --git a/completion/fish/m.fish b/completion/fish/m.fish index aad5d0a..d3fa150 100755 --- a/completion/fish/m.fish +++ b/completion/fish/m.fish @@ -140,12 +140,16 @@ complete -f -c m -n '__fish_m_using_command info' -a "help" -d 'Show help' complete -f -c m -n '__fish_m_needs_command' -a itunes -d 'itunes command line control' complete -f -c m -n '__fish_m_using_command itunes ' -a "status" -d 'show status, current artist and track' +complete -f -c m -n '__fish_m_using_command itunes ' -a "state" -d 'get player state' +complete -f -c m -n '__fish_m_using_command itunes ' -a "progress" -d 'get current progress of song (in sec)' complete -f -c m -n '__fish_m_using_command itunes ' -a "play" -d 'start playing iTunes' complete -f -c m -n '__fish_m_using_command itunes ' -a "pause" -d 'pause iTunes' complete -f -c m -n '__fish_m_using_command itunes ' -a "next" -d 'go to the next track' complete -f -c m -n '__fish_m_using_command itunes ' -a "prev" -d 'go to the previous track' complete -f -c m -n '__fish_m_using_command itunes ' -a "mute" -d 'mute volume' complete -f -c m -n '__fish_m_using_command itunes ' -a "unmute" -d 'mute volume' +complete -f -c m -n '__fish_m_using_command itunes ' -a "repeat" -d 'set repeat mode (options: one, all, off) [empty arg to get current repeat mode]' +complete -f -c m -n '__fish_m_using_command itunes ' -a "shuffle" -d 'toggles shuffle' complete -f -c m -n '__fish_m_using_command itunes ' -a "vol" -d 'increase and decrease volume' complete -f -c m -n '__fish_m_using_command itunes ' -a "stop" -d 'stop iTune' complete -f -c m -n '__fish_m_using_command itunes ' -a "quit" -d 'quit iTunes' diff --git a/completion/zsh/_m b/completion/zsh/_m index 3671c08..b9434f7 100644 --- a/completion/zsh/_m +++ b/completion/zsh/_m @@ -469,12 +469,16 @@ function _m_cmd { _m_solo \ $sub \ "status:show status, current artist and track" \ + "state:get player state" \ + "progress:get current progress of song (in sec)" \ "play:start playing iTunes" \ "pause:pause iTunes" \ "next:go to the next track" \ "prev:go to the previous track" \ "mute:mute volume" \ "unmute:unmute volume" \ + "repeat:set repeat mode (options: one, all, off) [empty arg to get]" \ + "shuffle:toggle shuffle" \ "vol:increase and decrease volume" \ "stop:stop iTunes" \ "quit:quit iTunes" \