about summary refs log tree commit diff stats
path: root/sys/nixpkgs/pkgs/scripts/source/wrappers/mpc-rm.sh
blob: 94e0634bb778f17ae767a6ea4d3cbc1710a432c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env dash

# shellcheck source=/dev/null
SHELL_LIBRARY_VERSION="2.1.2" . %SHELL_LIBRARY_PATH

cd "$XDG_MUSIC_DIR" || die "No music dir!"
trash-put "$(mpc --format '%file%' current)"
mpc del 0

# vim: ft=sh