dotfiles/.local/bin/scripts/mpq

7 lines
121 B
Bash
Executable File

#!/bin/sh -e
# MPC add file to queue
for arg
do fullpath=$(realpath "$arg")
mpc insert "${fullpath/$MUSIC\//}"
done