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