diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-11 13:43:40 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-11 14:03:45 +0200 |
commit | 9207419322db99e4d565d1409028175e1403be14 (patch) | |
tree | 189313c9ee09f36f1b2731b422857ad36fc3cea9 /pkgs/by-name/mp/mpc-beetrm/mpc-beetrm.sh | |
parent | feat(home/beets): Init the xtractor plugin (diff) | |
download | nixos-config-9207419322db99e4d565d1409028175e1403be14.tar.gz nixos-config-9207419322db99e4d565d1409028175e1403be14.zip |
fix(pkgs/mpc-rm): Rename to `mpc-beetrm`
This avoids shadowing the original `mpc rm` command
Diffstat (limited to 'pkgs/by-name/mp/mpc-beetrm/mpc-beetrm.sh')
-rwxr-xr-x | pkgs/by-name/mp/mpc-beetrm/mpc-beetrm.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/by-name/mp/mpc-beetrm/mpc-beetrm.sh b/pkgs/by-name/mp/mpc-beetrm/mpc-beetrm.sh new file mode 100755 index 00000000..3209503c --- /dev/null +++ b/pkgs/by-name/mp/mpc-beetrm/mpc-beetrm.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env dash + +# shellcheck source=/dev/null +SHELL_LIBRARY_VERSION="2.1.2" . %SHELL_LIBRARY_PATH + +beet remove --delete \ + title:"$(mpc --format '%title%' current)" \ + album:"$(mpc --format '%album%' current)" +mpc del 0 + +# vim: ft=sh |