Skip to content

Commit

Permalink
Merge pull request NixOS#311197 from endocrimes/dani/fish-boogaloo
Browse files Browse the repository at this point in the history
nixos/fish: Fix more lib references
  • Loading branch information
mweinelt committed May 12, 2024
2 parents c510812 + d0e35cb commit 5a9b28e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions nixos/modules/programs/fish.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ let

cfg = config.programs.fish;

fishAbbrs = builtins.concatStringsSep "\n" (
lib.mapAttrsFlatten (k: v: "abbr -ag ${k} ${builtins.escapeShellArg v}")
fishAbbrs = lib.concatStringsSep "\n" (
lib.mapAttrsFlatten (k: v: "abbr -ag ${k} ${lib.escapeShellArg v}")
cfg.shellAbbrs
);

fishAliases = builtins.concatStringsSep "\n" (
lib.mapAttrsFlatten (k: v: "alias ${k} ${builtins.escapeShellArg v}")
(builtins.filterAttrs (k: v: v != null) cfg.shellAliases)
fishAliases = lib.concatStringsSep "\n" (
lib.mapAttrsFlatten (k: v: "alias ${k} ${lib.escapeShellArg v}")
(lib.filterAttrs (k: v: v != null) cfg.shellAliases)
);

envShellInit = pkgs.writeText "shellInit" cfge.shellInit;
Expand Down Expand Up @@ -147,7 +147,7 @@ in

config = lib.mkIf cfg.enable {

programs.fish.shellAliases = builtins.mapAttrs (name: lib.mkDefault) cfge.shellAliases;
programs.fish.shellAliases = lib.mapAttrs (name: lib.mkDefault) cfge.shellAliases;

# Required for man completions
documentation.man.generateCaches = lib.mkDefault true;
Expand Down

0 comments on commit 5a9b28e

Please sign in to comment.