1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-03 00:19:46 +01:00

zsh-abbr: add package option

This commit is contained in:
Nova Leary 2024-12-01 11:23:18 -06:00 committed by GitHub
parent 4964f3c6fc
commit 441fae847d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,6 +9,8 @@ in {
enable =
mkEnableOption "zsh-abbr - zsh manager for auto-expanding abbreviations";
package = mkPackageOption pkgs "zsh-abbr" { };
abbreviations = mkOption {
type = types.attrsOf types.str;
default = { };
@ -27,7 +29,7 @@ in {
config = mkIf cfg.enable {
programs.zsh.plugins = [{
name = "zsh-abbr";
src = pkgs.zsh-abbr;
src = cfg.package;
file = "share/zsh/zsh-abbr/zsh-abbr.plugin.zsh";
}];