Created
March 2, 2024 22:00
-
-
Save djsime1/131a777e63f438ba9e93dba7775b263d to your computer and use it in GitHub Desktop.
Tailscale exit node FZF selector one-liner
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
fzf \ | |
--bind 'start:reload(tailscale exit-node list | grep -E "^ .+$")' \ | |
--bind 'ctrl-r:reload(tailscale exit-node list | grep -E "^ .+$")' \ | |
--bind 'ctrl-x:become(tailscale up --exit-node="" --exit-node-allow-lan-access=false)' \ | |
--bind 'enter:become(tailscale up --exit-node={2} --exit-node-allow-lan-access=true)' \ | |
--header ' Ctrl-C/Ctrl-Q: Quit, Ctrl-R: Reload, Ctrl-X: No exit node' \ | |
--header-lines=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment