From 8b975a73c0a3d4ea2ba9cad523a47599a76c1507 Mon Sep 17 00:00:00 2001 From: ache Date: Sat, 7 Mar 2026 10:04:46 +0100 Subject: fix: SSH kiten integration --- functions/ssh.fish | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 functions/ssh.fish (limited to 'functions/ssh.fish') diff --git a/functions/ssh.fish b/functions/ssh.fish new file mode 100644 index 0000000..234187b --- /dev/null +++ b/functions/ssh.fish @@ -0,0 +1,12 @@ +# This is a test + +function ssh -d "SSH but with kitty integration" + # If fish is run inside a kitty terminal then use the kitten command integration. + if [ "$TERM" = xterm-kitty -a -z KITTY_WINDO_ID ] + kitten ssh $argv + else + # Otherwise, just use the default ssh command. + set -l sshBin $(type --no-functions --path ssh) + $sshBin $argv + end +end -- cgit v1.3-2-g11bf