mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 11:32:42 +00:00
18 lines
461 B
TOML
18 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"
|