Added function for 'itunes playing' to display state when not playing
Diff
1diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh
2index 859e08da588f76bcddc9b9a871a024c1758dd0c0..9413f5056381978781afeda2067a2887a8d23f72 100644
3--- a/plugins/osx/osx.plugin.zsh
4+++ b/plugins/osx/osx.plugin.zsh
5@@ -167,6 +167,8 @@ function itunes() {
6 currenttrack=`osascript -e 'tell application "iTunes" to name of current track as string'`
7 currentartist=`osascript -e 'tell application "iTunes" to artist of current track as string'`
8 print -P "Listening to %F{yellow}$currenttrack%f by %F{yellow}$currentartist%f";
9+ else
10+ print "iTunes is" $state;
11 fi
12 return 0
13 ;;
14@@ -208,7 +210,7 @@ EOF
15 echo "\tnext|previous\tplay next or previous track"
16 echo "\tshuf|shuffle [on|off|toggle]\tSet shuffled playback. Default: toggle. Note: toggle doesn't support the MiniPlayer."
17 echo "\tvol\tSet the volume, takes an argument from 0 to 100"
18- echo "\tplaying\tShow what song is currently playing in iTunes."
19+ echo "\tplaying|status\tShow what song is currently playing in iTunes."
20 echo "\thelp\tshow this message and exit"
21 return 0
22 ;;