From 7b8c2c846f7f79f2946cba60530225283756bf37 Mon Sep 17 00:00:00 2001 From: pagedown Date: Thu, 24 Feb 2022 18:43:46 +0800 Subject: [PATCH] Shell integration: Check fish version and exit on outdated versions --- .../fish/vendor_conf.d/kitty-shell-integration.fish | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell-integration/fish/vendor_conf.d/kitty-shell-integration.fish b/shell-integration/fish/vendor_conf.d/kitty-shell-integration.fish index 964385af9..3dd0bdb72 100644 --- a/shell-integration/fish/vendor_conf.d/kitty-shell-integration.fish +++ b/shell-integration/fish/vendor_conf.d/kitty-shell-integration.fish @@ -19,6 +19,8 @@ end status is-interactive || exit 0 not functions -q __ksi_schedule || exit 0 +# Check fish version 3.3.0+ efficiently and exit on outdated versions +set -q fish_killring || exit 0 function __ksi_schedule --on-event fish_prompt -d "Setup kitty integration after other scripts have run, we hope" functions --erase __ksi_schedule