1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-24 02:39:48 +01:00

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.
This commit is contained in:
Jonas Holst Damtoft 2019-01-23 21:19:23 +01:00
parent 4aa07c3547
commit 601619660d
No known key found for this signature in database
GPG key ID: B41F19B1BAD55D37

View file

@ -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" (