alexellis / k3sup

bootstrap K3s over SSH in < 60s 🚀
https://github.com/sponsors/alexellis
Other
6.33k stars 376 forks source link

generated zsh shell completion not working #412

Closed mrwormhole closed 1 year ago

mrwormhole commented 1 year ago

Why do you need this?

nice to have, still investigating this

Expected Behaviour

I am doing a fresh install from AUR then I am expecting all shell completions to work which are generated from k3sup binary

Current Behaviour

generated zsh completion is not working

Possible Solution

unknown

Steps to Reproduce

  1. ensure zsh and zsh-completions are installed in .zshrc
  2. clone from https://aur.archlinux.org/packages/k3sup
  3. run makepkg -si
  4. try to do k3sup then press tab
  5. observe that it is not completing the commands

Your Environment

k3sup version
kubectl version
uname -a

cat /etc/os-release

Linux spiritbreaker 6.4.12-arch1-1

NAME="Arch Linux" PRETTY_NAME="Arch Linux" ID=arch BUILD_ID=rolling ANSI_COLOR="38;2;23;147;209" HOME_URL="https://archlinux.org/" DOCUMENTATION_URL="https://wiki.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" BUG_REPORT_URL="https://bugs.archlinux.org/" PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/" LOGO=archlinux-logo

Do you want to work on this?

yes

Subject to design approval, are you willing to work on a Pull Request for this issue or feature request?

mrwormhole commented 1 year ago

marked as resolved, just had to log out and restart my cmdline and put a space before hitting tab

also fpath had to be set in .zshrc