diff options
| author | 2026-05-14 11:05:31 +0100 | |
|---|---|---|
| committer | 2026-05-14 11:05:31 +0100 | |
| commit | b60042404a8aeab81b81380b401d638fb20a1b0e (patch) | |
| tree | 0fa64efaa623c5203d16bc1ba2b745b335c598af /remote-dev/home.nix | |
| parent | 41926591c513a42a30992a641e5d2875395c1c86 (diff) | |
| download | dotfiles-b60042404a8aeab81b81380b401d638fb20a1b0e.tar.gz dotfiles-b60042404a8aeab81b81380b401d638fb20a1b0e.tar.bz2 dotfiles-b60042404a8aeab81b81380b401d638fb20a1b0e.zip | |
fix(zsh): guard compdef on target command being installed
On minimal hosts (remote-dev VM, fresh container) several of the
`compdef alias=target` lines fail at login with messages like:
compdef: unknown command or service: just
compdef: unknown command or service: systemctl
compdef: unknown command or service: lsd
— because zsh has no `_just`/`_systemctl`/`_lsd` completion function
loaded when the binary isn't on the system. Wrap each call in a small
helper that checks $commands[<target>] first so absent tools just
silently skip their alias completion instead of spamming the prompt.
Diffstat (limited to 'remote-dev/home.nix')
0 files changed, 0 insertions, 0 deletions
