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.

(cherry picked from commit 601619660d)
This commit is contained in:
Jonas Holst Damtoft 2019-01-23 21:19:23 +01:00 committed by Robert Helgesson
parent 016005a3a3
commit 7d6a6cbbe3
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -7,7 +7,7 @@ let
cfg = config.programs.fish; cfg = config.programs.fish;
abbrsStr = concatStringsSep "\n" ( 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" ( aliasesStr = concatStringsSep "\n" (