-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
Description
home-manager/modules/programs/zsh.nix
Lines 731 to 736 in 4e12151
| (lib.mkIf (aliasesStr != "" || cfg.shellGlobalAliases != {}) (mkOrder 1250 | |
| ((optionalString (aliasesStr != "") aliasesStr) + | |
| (optionalString (cfg.shellGlobalAliases != {}) | |
| (concatStringsSep "\n" (lib.mapAttrsToList | |
| (k: v: "alias -g -- ${lib.escapeShellArg k}=${lib.escapeShellArg v}") | |
| cfg.shellGlobalAliases)))))) |
So this config:
home.shellAliases = {
lt = "lsd --tree x";
};
programs.zsh.shellGlobalAliases = {
g = "grep -i";
};Results in:
alias -- lt='lsd --tree x'alias -g -- g='grep -i'zoriya