about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-11 13:43:40 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-11 14:03:45 +0200
commit9207419322db99e4d565d1409028175e1403be14 (patch)
tree189313c9ee09f36f1b2731b422857ad36fc3cea9
parentfeat(home/beets): Init the xtractor plugin (diff)
downloadnixos-config-9207419322db99e4d565d1409028175e1403be14.tar.gz
nixos-config-9207419322db99e4d565d1409028175e1403be14.zip
fix(pkgs/mpc-rm): Rename to `mpc-beetrm`
This avoids shadowing the original `mpc rm` command
-rw-r--r--modules/home/pkgs/default.nix2
-rwxr-xr-xpkgs/by-name/mp/mpc-beetrm/mpc-beetrm.sh (renamed from pkgs/by-name/mp/mpc-rm/mpc-rm.sh)0
-rw-r--r--pkgs/by-name/mp/mpc-beetrm/package.nix (renamed from pkgs/by-name/mp/mpc-rm/package.nix)4
-rwxr-xr-xpkgs/by-name/mp/mpc/mpc.sh4
4 files changed, 5 insertions, 5 deletions
diff --git a/modules/home/pkgs/default.nix b/modules/home/pkgs/default.nix
index dc7c4fe2..4e77275d 100644
--- a/modules/home/pkgs/default.nix
+++ b/modules/home/pkgs/default.nix
@@ -135,7 +135,7 @@ with pkgs; let
         ncmpc # mpd player client
         mpc-cli-man # a cli mpd client (added via a wrapper script)
         mpc # Wrapper around `mpc` that allows the usage of `mpc-{rm,lyrics,searchadd}` without the `-`
-        mpc-rm # Removes the currently playing song from the disk and storage
+        mpc-beetrm # Removes the currently playing song from the disk and storage
         mpc-searchadd # Works like normal `mpc searchadd` but uses the `beets` query syntax
         # Displays the lyrics of the currently playing song
         (mpc-lyrics.override {
diff --git a/pkgs/by-name/mp/mpc-rm/mpc-rm.sh b/pkgs/by-name/mp/mpc-beetrm/mpc-beetrm.sh
index 3209503c..3209503c 100755
--- a/pkgs/by-name/mp/mpc-rm/mpc-rm.sh
+++ b/pkgs/by-name/mp/mpc-beetrm/mpc-beetrm.sh
diff --git a/pkgs/by-name/mp/mpc-rm/package.nix b/pkgs/by-name/mp/mpc-beetrm/package.nix
index 8af84279..837c93e2 100644
--- a/pkgs/by-name/mp/mpc-rm/package.nix
+++ b/pkgs/by-name/mp/mpc-beetrm/package.nix
@@ -4,8 +4,8 @@
   beets,
 }:
 sysLib.writeShellScript {
-  name = "mpc-rm";
-  src = ./mpc-rm.sh;
+  name = "mpc-beetrm";
+  src = ./mpc-beetrm.sh;
   generateCompletions = false;
   keepPath = false;
 
diff --git a/pkgs/by-name/mp/mpc/mpc.sh b/pkgs/by-name/mp/mpc/mpc.sh
index f613cf0a..0d636ac5 100755
--- a/pkgs/by-name/mp/mpc/mpc.sh
+++ b/pkgs/by-name/mp/mpc/mpc.sh
@@ -12,9 +12,9 @@ case "$1" in
     shift 1
     mpc-lyrics "$@"
     ;;
-"rm")
+"beetrm")
     shift 1
-    mpc-rm "$@"
+    mpc-beetrm "$@"
     ;;
 *)
     mpc "$@"