dots/home/private_dot_config/private_fish/functions/ssh.fish

9 lines
269 B
Fish

function ssh --description 'handy helper to make use of `kitten`'
if test $TERM = xterm-kitty
kitten ssh $argv
or command ssh $argv
# in case kitten unable to work in certain conditions like connecting to a openwrt.
else
command ssh $argv
end
end