helm/shell/mpd+ncmpcpp/bin/mpd-add

10 lines
205 B
Plaintext
Raw Normal View History

2017-09-05 10:15:56 -07:00
#!/usr/bin/env bash
# Add files (relative to working directory) to current playlist.
local files=()
for file in $@; do
files+="$(realpath --relative-to="$HOME/music" "$file")"
2017-09-05 10:15:56 -07:00
done
mpc add ${files[@]}