Files
2025-08-29 09:40:20 +03:00

12 lines
259 B
Fish

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