From 601619660de5a86ae6eb95936b7bffc03227dbc2 Mon Sep 17 00:00:00 2001 From: Jonas Holst Damtoft Date: Wed, 23 Jan 2019 21:19:23 +0100 Subject: [PATCH] fish: use global for abbr Makes fish use global scope for abbreviations. This makes it so that they don't stick across config changes. Before, an abbreviation would still exist even if removed from the config. --- modules/programs/fish.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/programs/fish.nix b/modules/programs/fish.nix index 0b46c17c..2328f9b9 100644 --- a/modules/programs/fish.nix +++ b/modules/programs/fish.nix @@ -7,7 +7,7 @@ let cfg = config.programs.fish; abbrsStr = concatStringsSep "\n" ( - mapAttrsToList (k: v: "abbr --add ${k} '${v}'") cfg.shellAbbrs + mapAttrsToList (k: v: "abbr --add --global ${k} '${v}'") cfg.shellAbbrs ); aliasesStr = concatStringsSep "\n" (