helm/shell/mpd+ncmpcpp/bin/mpd-add
2017-12-06 01:39:10 -05:00

10 lines
205 B
Bash
Executable file

#!/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")"
done
mpc add ${files[@]}