all repos — nixfiles @ 55bc4ae0d6c404fb7deb9b6c2120a7726f6ce725

System and user configuration, managed by nix and home-manager

zsh: enable use of plugins with non-standard plugin filenames

Alan Pearce
commit

55bc4ae0d6c404fb7deb9b6c2120a7726f6ce725

parent

da9e32d085ee6a8e5fbf5ab1cceaf0b39fb7aff4

1 file changed, 2 insertions(+), 2 deletions(-)

jump to
M user/settings/zsh.nixuser/settings/zsh.nix
@@ -14,8 +14,8 @@ if stdenv.isDarwin
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}";