diff --git a/wrapperModules/f/fish/module.nix b/wrapperModules/f/fish/module.nix index 290d6a0e..b24dbe05 100644 --- a/wrapperModules/f/fish/module.nix +++ b/wrapperModules/f/fish/module.nix @@ -457,8 +457,7 @@ in (foldl' ( acc: elem: acc + " " + (mkAbbrArg elem abbr) ) "abbr --add ${abbr.word} ${mkCursorArg abbr}" abbrArgs) - + " " - + "\"${abbr.expansion}\""; + + optionalString (abbr.function == null) " \"${abbr.expansion}\""; abbrs = concatStringsSep "\n" (map mkAbbrStr (attrValues cfg.abbreviations)); aliases = concatStringsSep "\n" (