From 6a284975fc12311df2eb126e7e5e35e0a563324c Mon Sep 17 00:00:00 2001 From: Dylan Date: Sun, 13 Mar 2016 09:43:06 +1100 Subject: [PATCH] Fix song_shorthand when songs have more than one '-' in their name --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 8d07d920..a19793d1 100755 --- a/neofetch +++ b/neofetch @@ -1220,7 +1220,7 @@ getsong () { # Display Artist and Title on seperate lines. if [ "$song_shorthand" == "on" ]; then artist="${song/ -*}" - song=${song/*- } + song=${song/$artist - } if [ "$song" != "$artist" ]; then prin "Artist: ${artist}"