1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-23 21:01:58 +00:00

Fixed colourisation of Now Playing function

This commit is contained in:
Andy Bateman 2015-09-17 13:48:30 +12:00
parent a746e6010a
commit 29db0e0119

View file

@ -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
;;