Existing completion results in a warning on completion:
```bash
$ gopass show a<TAB>
[: Expected a combining operator like '-a' at index 6
2 -eq 1 -a gopass =
^
/run/current-system/sw/share/fish/vendor_completions.d/gopass.fish (line 6):
if [ (count $cmd) -eq 1 -a $cmd[1] = $PROG ]
^
in function '__fish_gopass_needs_command'
called on line 1 of file /run/current-system/sw/share/fish/vendor_functions.d/_autopair_tab.fish
in command substitution
called on line 6 of file /run/current-system/sw/share/fish/vendor_functions.d/_autopair_tab.fish
in function '_autopair_tab'
```
Not entirely sure why, but switching this to two separate tests
eliminates the warning while still completing correctly.
Signed-off-by: Kenny MacDermid <kenny@macdermid.ca>
This is an attempt to fix the different autocopletion issues. Since I
couldn't reproduce most of them, I'm not completely sure if the fixes
are effective.
Fixes#3086Fixes#3105Fixes#3285
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
This PR adds a new attempt at validating recipients files to prevent
malicious actors from updating them and tricking users into sharing
their new and updated secrets with a wider-than-inteded audience.
This includes two new config options (`recipients.hash` and
`recipients.check`) and one new command `gopass recipients ack`
to update the hash after validating it's content.
Fixes#2478
RELEASE_NOTES=[ENHANCEMENT] Add recipients hash checking.
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
This commit adds yet another config handler for gopass. It is based on
the format used by git itself. This has the potential to address a lot
of long standing issues, but it also causes a lot of changes to how we
handle configuration, so bugs are inevitable.
Fixes#1567Fixes#1764Fixes#1819Fixes#1878Fixes#2387Fixes#2418
RELEASE_NOTES=[BREAKING] New config format based on git config.
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
Co-authored-by: Yolan Romailler <AnomalRoil@users.noreply.github.com>
address comments
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>