fd: don't create shell aliases with empty args
This commit is contained in:
parent
5d151429e1
commit
8f8eb15c6d
|
@ -38,7 +38,7 @@ with lib; {
|
||||||
|
|
||||||
args = escapeShellArgs (optional cfg.hidden "--hidden" ++ cfg.extraOptions);
|
args = escapeShellArgs (optional cfg.hidden "--hidden" ++ cfg.extraOptions);
|
||||||
|
|
||||||
optionsAlias = { fd = "fd ${args}"; };
|
optionsAlias = optionalAttrs (args != "") { fd = "fd ${args}"; };
|
||||||
in mkIf cfg.enable {
|
in mkIf cfg.enable {
|
||||||
home.packages = [ cfg.package ];
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue