Last active
December 12, 2024 15:13
-
-
Save fumiya-kume/03998178792bf821ddaa9a8d4b2ddedf to your computer and use it in GitHub Desktop.
List up the tailscale machines, and ssh it with selected one.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function tssh | |
ssh (tailscale status --active | awk '/^# / {next} /^[ \t]*$/ {next} /^\-/ {next} {print $2}' | peco | tr "\n" "\0") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment