mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 02:39:48 +01:00
fd: don't create shell aliases with empty args
This commit is contained in:
parent
5d151429e1
commit
8f8eb15c6d
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ with lib; {
|
|||
|
||||
args = escapeShellArgs (optional cfg.hidden "--hidden" ++ cfg.extraOptions);
|
||||
|
||||
optionsAlias = { fd = "fd ${args}"; };
|
||||
optionsAlias = optionalAttrs (args != "") { fd = "fd ${args}"; };
|
||||
in mkIf cfg.enable {
|
||||
home.packages = [ cfg.package ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue