You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try to type restic <TAB> in fish shell, auto completion does not work.
The issue is caused by adding RESTIC_PASSWORD_FILE in /etc/environments if there is no password file or this password file is not readable for normal users except admin/root.
But bash and zsh have no issue.
Do you have any idea what may have caused this?
/etc/environments adding RESTIC_PASSWORD_FILE=/no_password_file breaks auto-completion of restic in fish shell if the password file is not readable for users.
But bash shell and zshshell have no issue with that.
Do you have an idea how to solve the issue?
Remove RESTIC_PASSWORD_FILE=/... in /etc/environments , then reboot. The issue is fixed.
But that is not nice.
The text was updated successfully, but these errors were encountered:
Zesko
changed the title
Fish autocompletion does not work when adding RESTIC_PASSWORD_FILE in /etc/environment
Restic autocompletion does not work in Fish shell when adding RESTIC_PASSWORD_FILE in /etc/environment
Oct 15, 2023
Output of
restic version
restic 0.16.0 compiled with go1.20.7 on linux/amd64
Expected behavior
fish
shell (the current version: 3.6.1)fish
in any terminal$ sudo restic <Press TAB>
in any terminal to show auto completion, that works fine as expected.Steps to reproduce the behavior (Issue)
/etc/environments
addsRESTIC_PASSWORD_FILE=/no_password_file
restic <TAB>
in fish shell, auto completion does not work.The issue is caused by adding
RESTIC_PASSWORD_FILE
in/etc/environments
if there is no password file or this password file is not readable for normal users except admin/root.But
bash
andzsh
have no issue.Do you have any idea what may have caused this?
/etc/environments
addingRESTIC_PASSWORD_FILE=/no_password_file
breaks auto-completion of restic in fish shell if the password file is not readable for users.But
bash
shell andzsh
shell have no issue with that.Do you have an idea how to solve the issue?
Remove
RESTIC_PASSWORD_FILE=/...
in/etc/environments
, then reboot. The issue is fixed.But that is not nice.
The text was updated successfully, but these errors were encountered: