Skip to content

Instantly share code, notes, and snippets.

@SulimanLab
SulimanLab / tailscale_zsh_completetion.sh
Last active November 5, 2023 20:28
Zsh autocompletion for Tailscale command-line interface
#compdef tailscale
_cli_zsh_autocomplete() {
local -a opts
local cur last_word FLAGS
local wordsLen=${#words}
for (( i=${#words[@]}; i>=1; i-- )); do
if [[ -n "${words[i]}" ]]; then