eza: add support for fish abbreviations

This commit is contained in:
Heitor Augusto 2024-09-10 13:57:24 -03:00 committed by Robert Helgesson
parent 076c78eded
commit 503af483e1
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED

View file

@ -91,8 +91,17 @@ with lib;
programs.zsh.shellAliases = optionsAlias
// optionalAttrs cfg.enableZshIntegration aliases;
programs.fish.shellAliases = optionsAlias
// optionalAttrs cfg.enableFishIntegration aliases;
programs.fish = mkMerge [
(mkIf (!config.programs.fish.preferAbbrs) {
shellAliases = optionsAlias
// optionalAttrs cfg.enableFishIntegration aliases;
})
(mkIf config.programs.fish.preferAbbrs {
shellAliases = optionsAlias;
shellAbbrs = optionalAttrs cfg.enableFishIntegration aliases;
})
];
programs.ion.shellAliases = optionsAlias
// optionalAttrs cfg.enableIonIntegration aliases;