mirror of
https://github.com/ahmetb/kubectx.git
synced 2026-08-09 01:05:51 +00:00
Interactive mode was launching fzf and handing it the parent TTY on fd 0, then relying on fzf to re-exec kubectx via FZF_DEFAULT_COMMAND to obtain the candidate list. fzf never received the list on its stdin, so on systems where fzf did not honor FZF_DEFAULT_COMMAND the picker showed no items and kubectx exited with 'you did not choose any of the options'. Build the candidate list in-process and pipe it directly to fzf's stdin. This removes the self-re-exec, the $SHELL -c dependency, and the TTY-plumbing hack on fd 0. Fixes #500