mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 17:09:21 +00:00
Song: Don't print empty song with song_shorthand
This commit is contained in:
2
neofetch
2
neofetch
@@ -1340,7 +1340,7 @@ get_song() {
|
|||||||
[[ "$(trim "$song")" == "-" ]] && unset -v song
|
[[ "$(trim "$song")" == "-" ]] && unset -v song
|
||||||
|
|
||||||
# Display Artist and Title on separate lines.
|
# Display Artist and Title on separate lines.
|
||||||
if [[ "$song_shorthand" == "on" ]]; then
|
if [[ "$song_shorthand" == "on" && "$song" ]]; then
|
||||||
artist="${song/ -*}"
|
artist="${song/ -*}"
|
||||||
song="${song/$artist - }"
|
song="${song/$artist - }"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user