pls: add support for fish abbreviations

This commit is contained in:
Heitor Augusto 2024-09-13 13:36:08 -03:00 committed by Robert Helgesson
parent 7edf6ccaec
commit f69e61a2d7
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED

View file

@ -28,7 +28,15 @@ in {
programs.bash.shellAliases = mkIf cfg.enableAliases aliases;
programs.fish.shellAliases = mkIf cfg.enableAliases aliases;
programs.fish = mkMerge [
(mkIf (!config.programs.fish.preferAbbrs) {
shellAliases = mkIf cfg.enableAliases aliases;
})
(mkIf config.programs.fish.preferAbbrs {
shellAbbrs = mkIf cfg.enableAliases aliases;
})
];
programs.zsh.shellAliases = mkIf cfg.enableAliases aliases;
};