summaryrefslogtreecommitdiff
path: root/functions/ssh.fish
blob: 4eb261ad3d513f9bb73ad599bf38de2746e84cf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
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" ]
    kitten ssh $argv
  else
    # Otherwise, just use the default ssh command.
    set -l sshBin $(type --no-functions --path ssh)
    $sshBin $argv
  end
end