29db0e0119aba4f317ac320ed5089b82142bcb10

Author
Andy Bateman <andy@andybateman.com>
Committer
Andy Bateman <andy@andybateman.com>
Date

Message

Fixed colourisation of Now Playing function

Diff

 1diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh
 2index 044276c1cfa44d1e1c64cacb6ec308d5fb3d61ec..f1b4371899610e13deb62e223112dcc8f3b5e1ca 100644
 3--- a/plugins/osx/osx.plugin.zsh
 4+++ b/plugins/osx/osx.plugin.zsh
 5@@ -166,7 +166,7 @@ function itunes() {
 6 			if [ "$state" = "playing" ]; then
 7 				currenttrack=`osascript -e 'tell application "iTunes" to name of current track as string'`
 8 				currentartist=`osascript -e 'tell application "iTunes" to artist of current track as string'`
 9-				echo "Listening to %F{yellow}$currenttrack%f by %F{yellow}$currentartist%f";
10+				print -P "Listening to %F{yellow}$currenttrack%f by %F{yellow}$currentartist%f";
11 			fi
12 			return 0
13 			;;