Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
326c2b08
Commit
326c2b08
authored
Sep 19, 2015
by
Andy Bateman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced the use of 'print' with 'echo' in order to sanitise track and artist names
Fixed indentation Fixed indentation
parent
993e09cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
osx.plugin.zsh
plugins/osx/osx.plugin.zsh
+2
-2
No files found.
plugins/osx/osx.plugin.zsh
View file @
326c2b08
...
...
@@ -166,9 +166,9 @@ 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'
`
print
-P
"Listening to %F{yellow}
$currenttrack
%f by %F{yellow}
$currentartist
%f
"
;
echo
-E
"Listening to
$fg
[yellow]
$currenttrack$reset_color
by
$fg
[yellow]
$currentartist$reset_color
"
;
else
print
"iTunes is"
$state
;
echo
"iTunes is"
$state
;
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