Skip to content

Instantly share code, notes, and snippets.

@djsime1
Created March 2, 2024 22:00
Show Gist options
  • Save djsime1/131a777e63f438ba9e93dba7775b263d to your computer and use it in GitHub Desktop.
Save djsime1/131a777e63f438ba9e93dba7775b263d to your computer and use it in GitHub Desktop.
Tailscale exit node FZF selector one-liner
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