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
6cbba335
Commit
6cbba335
authored
Aug 31, 2016
by
mahi97
Browse files
fix showStatus output
parent
b8085556
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/osx/osx.plugin.zsh
View file @
6cbba335
...
@@ -310,7 +310,7 @@ function spotify() {
...
@@ -310,7 +310,7 @@ function spotify() {
position
=
$(
osascript
-e
'tell application "Spotify" to player position as string'
|
tr
','
'.'
)
;
position
=
$(
osascript
-e
'tell application "Spotify" to player position as string'
|
tr
','
'.'
)
;
position
=
$(
echo
"scale=2;
$position
/ 60"
| bc |
awk
'{printf "%0.2f", $0}'
)
;
position
=
$(
echo
"scale=2;
$position
/ 60"
| bc |
awk
'{printf "%0.2f", $0}'
)
;
echo
"
$reset
""Artist:
$artist
\n
Album:
$album
\n
Track:
$track
\n
Position:
$position
/
$duration
"
;
printf
"
$reset
""Artist:
%s
\n
Album:
%s
\n
Track:
%s
\n
Position:
%s / %s"
"
$artist
"
"
$album
"
"
$track
"
"
$position
"
"
$duration
"
;
fi
fi
}
}
...
...
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