mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-22 03:36:14 +03:00
fish: raise eval quota inline with other completions, add -e
This commit is contained in:
@ -9,7 +9,7 @@ pub const fish_completions = comptimeGenerateFishCompletions();
|
|||||||
|
|
||||||
fn comptimeGenerateFishCompletions() []const u8 {
|
fn comptimeGenerateFishCompletions() []const u8 {
|
||||||
comptime {
|
comptime {
|
||||||
@setEvalBranchQuota(18000);
|
@setEvalBranchQuota(50000);
|
||||||
var counter = std.io.countingWriter(std.io.null_writer);
|
var counter = std.io.countingWriter(std.io.null_writer);
|
||||||
try writeFishCompletions(&counter.writer());
|
try writeFishCompletions(&counter.writer());
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ fn writeFishCompletions(writer: anytype) !void {
|
|||||||
|
|
||||||
try writer.writeAll("complete -c ghostty -f\n");
|
try writer.writeAll("complete -c ghostty -f\n");
|
||||||
|
|
||||||
try writer.writeAll("complete -c ghostty -l help -f\n");
|
try writer.writeAll("complete -c ghostty -s e -l help -f\n");
|
||||||
try writer.writeAll("complete -c ghostty -n \"not __fish_seen_subcommand_from $commands\" -l version -f\n");
|
try writer.writeAll("complete -c ghostty -n \"not __fish_seen_subcommand_from $commands\" -l version -f\n");
|
||||||
|
|
||||||
for (@typeInfo(Config).Struct.fields) |field| {
|
for (@typeInfo(Config).Struct.fields) |field| {
|
||||||
|
Reference in New Issue
Block a user