function ssh --wraps ssh if test (count $argv) -eq 1 set -l target_host $argv[1] set -l ts_status (tailscale status | grep -i -- "$target_host") if test -n "$ts_status" echo "$ts_status" echo "" end end command ssh $argv end