about summary refs log tree commit diff
path: root/nixos/modules/programs/fish_completion-generator.patch
diff options
context:
space:
mode:
authorhyperfekt <git@hyperfekt.net>2018-12-17 20:12:09 +0100
committerhyperfekt <git@hyperfekt.net>2019-02-27 12:23:48 +0100
commit3731835efce7c7f746270c01efe4f91bf127be25 (patch)
treec4a8323b433dae5a42ef5fce9f6f63139b3401ee /nixos/modules/programs/fish_completion-generator.patch
parent2e23d727d640f0a96b167d105157f6e7183d8f82 (diff)
downloadnixlib-3731835efce7c7f746270c01efe4f91bf127be25.tar
nixlib-3731835efce7c7f746270c01efe4f91bf127be25.tar.gz
nixlib-3731835efce7c7f746270c01efe4f91bf127be25.tar.bz2
nixlib-3731835efce7c7f746270c01efe4f91bf127be25.tar.lz
nixlib-3731835efce7c7f746270c01efe4f91bf127be25.tar.xz
nixlib-3731835efce7c7f746270c01efe4f91bf127be25.tar.zst
nixlib-3731835efce7c7f746270c01efe4f91bf127be25.zip
nixos/fish: generate autocompletions from man pages
Diffstat (limited to 'nixos/modules/programs/fish_completion-generator.patch')
-rw-r--r--nixos/modules/programs/fish_completion-generator.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/nixos/modules/programs/fish_completion-generator.patch b/nixos/modules/programs/fish_completion-generator.patch
new file mode 100644
index 000000000000..a8c797d185a6
--- /dev/null
+++ b/nixos/modules/programs/fish_completion-generator.patch
@@ -0,0 +1,11 @@
+--- a/create_manpage_completions.py
++++ b/create_manpage_completions.py
+@@ -776,8 +776,6 @@ def parse_manpage_at_path(manpage_path, output_directory):
+
+             built_command_output.insert(0, "# " + CMDNAME)
+
+-            # Output the magic word Autogenerated so we can tell if we can overwrite this
+-            built_command_output.insert(1, "# Autogenerated from man page " + manpage_path)
+             # built_command_output.insert(2, "# using " + parser.__class__.__name__) # XXX MISATTRIBUTES THE CULPABILE PARSER! Was really using Type2 but reporting TypeDeroffManParser
+
+             for line in built_command_output: