Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added completions #132

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion completion/bash/m
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions completion/fish/m.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 4 additions & 0 deletions completion/zsh/_m
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down