1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2025-04-10 02:50:14 +08:00

fix(tailscale): fix completion binding for alias to Tailscale ()

Fixes 
This commit is contained in:
Marc Cornellà 2025-01-23 20:10:10 +01:00
parent cca4043238
commit 501f29f90c
No known key found for this signature in database
GPG Key ID: 0314585E776A9C1B

View File

@ -15,4 +15,11 @@ if [[ ! -f "$ZSH_CACHE_DIR/completions/_tailscale" ]]; then
fi
fi
# If using the alias, let's make sure that the aliased executable is also bound
# in case the alias points to "Tailscale" instead of "tailscale".
# See https://github.com/ohmyzsh/ohmyzsh/discussions/12928
if (( $+aliases[tailscale] )); then
_comps[${aliases[tailscale]:t}]=_tailscale
fi
tailscale completion zsh >| "$ZSH_CACHE_DIR/completions/_tailscale" &|