chitoku-k / fzf-zsh-completions

Fuzzy completions for fzf and Zsh (git, kubectl, docker, ...)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Propagation of preceding environment variables

chitoku-k opened this issue · comments

Command name

(all)

Completion context

CF_HOME=/tmp/foundation01 cf target -o **<TAB>
DOCKER_HOST=tcp://192.0.2.1:2375 docker start **<TAB>
GH_CONFIG_DIR=/tmp/gh gh pr view **<TAB>
GIT_DIR=/tmp/git git add **<TAB>
KUBECONFIG=/tmp/kube kubectl get **<TAB>
VAULT_ADDR=http://192.0.2.1:8200 vault list **<TAB>

What happens now?

All preceding variables are ignored.

What do you expect to complete?

Call the commands with all preceding variables when exist.

commented

Probably using the local -x command resolves it. https://zsh.sourceforge.io/Doc/Release/Shell-Builtin-Commands.html