summaryrefslogtreecommitdiff
path: root/functions/ssh.fish
diff options
context:
space:
mode:
authorache <ache@ache.one>2026-03-07 10:04:46 +0100
committerache <ache@ache.one>2026-03-07 10:04:46 +0100
commit8b975a73c0a3d4ea2ba9cad523a47599a76c1507 (patch)
treef1ba8f93f2052f06241f7af1aee12f9371cc8b67 /functions/ssh.fish
parentfix: Kwaky is a dark and light theme (diff)
fix: SSH kiten integration
Diffstat (limited to 'functions/ssh.fish')
-rw-r--r--functions/ssh.fish12
1 files changed, 12 insertions, 0 deletions
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