mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-19 20:29:45 +01:00
fix showStatus output
This commit is contained in:
parent
b808555678
commit
6cbba3353f
1 changed files with 1 additions and 1 deletions
|
@ -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\nAlbum: $album\nTrack: $track \nPosition: $position / $duration";
|
printf "$reset""Artist: %s\nAlbum: %s\nTrack: %s \nPosition: %s / %s" "$artist" "$album" "$track" "$position" "$duration";
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue