mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
eza: don't create shell aliases with empty args
This commit is contained in:
parent
8f8eb15c6d
commit
65e0f5aa25
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ with lib;
|
|||
args = escapeShellArgs (optional cfg.icons "--icons"
|
||||
++ optional cfg.git "--git" ++ cfg.extraOptions);
|
||||
|
||||
optionsAlias = { eza = "eza ${args}"; };
|
||||
optionsAlias = optionalAttrs (args != "") { eza = "eza ${args}"; };
|
||||
|
||||
aliases = builtins.mapAttrs (_name: value: lib.mkDefault value) {
|
||||
ls = "eza";
|
||||
|
|
Loading…
Reference in a new issue