diff options
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/by-name/mp/mpp/package.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/by-name/mp/mpp/package.nix b/pkgs/by-name/mp/mpp/package.nix index 29ec1c80..9c5315b0 100644 --- a/pkgs/by-name/mp/mpp/package.nix +++ b/pkgs/by-name/mp/mpp/package.nix @@ -4,6 +4,7 @@ fd, symlinkJoin, stdenv, + zsh, }: let script = sysLib.writeShellScript { name = "mpp"; @@ -18,7 +19,7 @@ }; mpcShare = stdenv.mkDerivation { - name = "${mpc.name}-only-share"; + name = "mpp-only-share"; nativeBuildInputs = [fd]; strictDeps = true; @@ -37,6 +38,11 @@ mv "$file_path" "$new_file_path" } + # Copy the zsh bundled `mpc` completions to `mpp` + # TODO: Also add completions for the new subcommands <2024-11-17> + mkdir --parents share/zsh/site-functions; + cp "${zsh}/share/zsh/${zsh.version}/functions/_mpc" "share/zsh/site-functions" + # Replace all reverences to `mpc`. First all files fd "mpc" "." --hidden --type file | while read -r file_path; do fixMpc "$file_path" |