4 Commits

Author SHA1 Message Date
02311a6b3e fix(shell/1password): fix typo in comment of script 2025-05-25 20:48:40 +01:00
f30c675f3b fix(shell/1password): source cache file after updating it 2024-05-12 16:35:30 +01:00
53052def08 fix(shell/1password): automatically resolve shell completion issues
1Password's shell plugin integration is nice, but it currently uses
aliases to run various CLI tools through `op plugin run -- <tool>`.

This leads to shell completion for those tools not working correctly in
bash and zsh.

While zsh can work around that with `setopt completealiases`, it causes
shorthand aliases to break instead. Hence the only reasonable solution
is to replace the aliases with shell functions.

Previously I had manually been editing ~/.config/op/plugins.sh replacing
the aliases with functions. This is an automated solution that generates
unalias calls and function definitions for all 1Password aliases. It is
also efficient by means of writing the generated functions to a cache
file which is only updated when needed.
2024-05-12 16:28:08 +01:00
0a17bbfadb feat: add 1Password CLI integration 2023-03-09 21:53:01 +00:00