mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-10 04:26:17 +02:00
Fixed colourisation of Now Playing function
This commit is contained in:
parent
28f571b5c2
commit
5e1498ab24
1 changed files with 1 additions and 1 deletions
|
|
@ -166,7 +166,7 @@ function itunes() {
|
||||||
if [ "$state" = "playing" ]; then
|
if [ "$state" = "playing" ]; then
|
||||||
currenttrack=`osascript -e 'tell application "iTunes" to name of current track as string'`
|
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'`
|
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
|
fi
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue