Archive completion doesn't work with $BORG_REPO
Closed this issue · 3 comments
SanskritFritz commented
You check the README for "This is a Borg repository". It is not suitable for this scenario:
export BORG_REPO=borgrepo
borg list ::archive
I solved this by simply trusting borg for knowing if the directory is a repo 😄
borgbackup-zsh-completion/_borg
Line 236 in 3074cde
mrkmg commented
From my testing, it does not appear that I can access ENV variables from withen the ZSH autocomplete function. I am still testing.
SanskritFritz commented
You have to export the variable, just setting it is not enough, autocompletion works in a subshell I think.
SanskritFritz commented
Closing, this is solved.