summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-03-26 13:01:59 +0200
committerAlan Pearce2023-03-26 13:01:59 +0200
commit55bc4ae0d6c404fb7deb9b6c2120a7726f6ce725 (patch)
treefa5aa7b813d2e0f0bc990e3fef24cfa7a486285d
parentda9e32d085ee6a8e5fbf5ab1cceaf0b39fb7aff4 (diff)
downloadnixfiles-55bc4ae0d6c404fb7deb9b6c2120a7726f6ce725.tar.lz
nixfiles-55bc4ae0d6c404fb7deb9b6c2120a7726f6ce725.tar.zst
nixfiles-55bc4ae0d6c404fb7deb9b6c2120a7726f6ce725.zip
zsh: enable use of plugins with non-standard plugin filenames
-rw-r--r--user/settings/zsh.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/user/settings/zsh.nix b/user/settings/zsh.nix
index 4977ed48..86e9224c 100644
--- a/user/settings/zsh.nix
+++ b/user/settings/zsh.nix
@@ -14,8 +14,8 @@ let
     then ""
     else "--time-style=long-iso";
   zshrc = ".config/zsh/.zshrc";
-  mkZshPlugin = attrs: {
-    name = attrs.name;
+  mkZshPlugin = attrs@{ name, file ? "${name}.plugin.zsh", ... }: {
+    inherit name file;
     src = stdenv.mkDerivation {
       inherit (attrs) src;
       name = "zsh-plugin-${attrs.name}";