diff options
author | Manuel Hutter <mhutter@users.noreply.github.com> | 2016-09-30 19:54:27 +0200 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2016-09-30 19:54:27 +0200 |
commit | 3de0235ad26d4584727f4cce17c09f1b4ae6cee5 (patch) | |
tree | 78380f3eafa944126d30cc2b31748c49260c0336 | |
parent | c713407f90e7024507c7fc621440cb171108e7f4 (diff) | |
download | zsh-3de0235ad26d4584727f4cce17c09f1b4ae6cee5.tar.gz zsh-3de0235ad26d4584727f4cce17c09f1b4ae6cee5.tar.bz2 zsh-3de0235ad26d4584727f4cce17c09f1b4ae6cee5.zip |
Add missing newline to end of `spotify status` output (#5480)
-rw-r--r-- | plugins/osx/osx.plugin.zsh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh index aa6a256c1..d7baa1191 100644 --- a/plugins/osx/osx.plugin.zsh +++ b/plugins/osx/osx.plugin.zsh @@ -314,7 +314,7 @@ function spotify() { position=$(osascript -e 'tell application "Spotify" to player position as string' | tr ',' '.'); position=$(echo "scale=2; $position / 60" | bc | awk '{printf "%0.2f", $0}'); - printf "$reset""Artist: %s\nAlbum: %s\nTrack: %s \nPosition: %s / %s" "$artist" "$album" "$track" "$position" "$duration"; + printf "$reset""Artist: %s\nAlbum: %s\nTrack: %s \nPosition: %s / %s\n" "$artist" "$album" "$track" "$position" "$duration"; fi } @@ -412,17 +412,17 @@ function spotify() { osascript -e 'tell application "Spotify" to playpause'; break ;; - "quit" ) + "quit" ) cecho "Quitting Spotify."; osascript -e 'tell application "Spotify" to quit'; exit 1 ;; - "next" ) + "next" ) cecho "Going to next track." ; osascript -e 'tell application "Spotify" to next track'; break ;; - "prev" ) + "prev" ) cecho "Going to previous track."; osascript -e 'tell application "Spotify" to previous track'; break ;; |