dotfiles/.local/bin/focus

4 lines
246 B
Plaintext
Raw Normal View History

2020-09-04 10:05:10 +00:00
playlistPath="$MUSIC/Playlists"
2020-10-15 08:12:25 +00:00
result="$(test "$1" && (find $playlistPath -iname "focus-$1.m3u8" | grep . || find $playlistPath -iname "$1.m3u*" | grep . || find $MUSIC -iname "*$1*") | head -1 || echo "$playlistPath/focus.m3u8" )"
vp "$result"