浏览代码

Fixed colourisation of Now Playing function

Andy Bateman 9 年之前
父节点
当前提交
29db0e0119
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/osx/osx.plugin.zsh

+ 1 - 1
plugins/osx/osx.plugin.zsh

@@ -166,7 +166,7 @@ function itunes() {
 			if [ "$state" = "playing" ]; then
 				currenttrack=`osascript -e 'tell application "iTunes" to name of current track as string'`
 				currentartist=`osascript -e 'tell application "iTunes" to artist of current track as string'`
-				echo "Listening to %F{yellow}$currenttrack%f by %F{yellow}$currentartist%f";
+				print -P "Listening to %F{yellow}$currenttrack%f by %F{yellow}$currentartist%f";
 			fi
 			return 0
 			;;