mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 19:32:43 +00:00
19 lines
461 B
TOML
19 lines
461 B
TOML
[metadata]
|
|
name = "tailscale-exit-node"
|
|
description = "A channel to select a tailscale exit node"
|
|
requirements = ["tailscale", "awk"]
|
|
|
|
[source]
|
|
command = "tailscale exit-node list | awk '/^[[:space:]]*[0-9]+\\./ {gsub(/^[[:space:]]+/, \"\"); print $1}'"
|
|
|
|
[preview]
|
|
command = "tailscale whois {}"
|
|
|
|
[keybindings]
|
|
enter = "actions:connect"
|
|
|
|
[actions.connect]
|
|
description = "Set selected host as exit node"
|
|
command = "tailscale set --exit-node={}"
|
|
mode = "execute"
|