Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
29db0e01
Commit
29db0e01
authored
Sep 17, 2015
by
Andy Bateman
Browse files
Fixed colourisation of Now Playing function
parent
a746e601
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/osx/osx.plugin.zsh
View file @
29db0e01
...
...
@@ -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
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment