Skip to content

Commit

Permalink
Add missing newline to end of spotify status output (ohmyzsh#5480)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhutter authored and mcornella committed Sep 30, 2016
1 parent c713407 commit 3de0235
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/osx/osx.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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 ;;
Expand Down

0 comments on commit 3de0235

Please sign in to comment.