From d33cbfd1a309cea0d7a58501ccb7111714e64238 Mon Sep 17 00:00:00 2001
From: Mahmoud Al-Qudsi <mqudsi@neosmart.net>
Date: Mon, 11 Nov 2024 16:51:27 -0600
Subject: [PATCH] Prevent delta completions from complain with old version

---
 share/completions/delta.fish | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/share/completions/delta.fish b/share/completions/delta.fish
index 6b08a1986..b90e2dba4 100644
--- a/share/completions/delta.fish
+++ b/share/completions/delta.fish
@@ -1 +1,2 @@
-delta --generate-completion fish | source
+# Old versions of fish do not have a --generate-completion option!
+delta --generate-completion fish 2>/dev/null | source