diff options
| author | Federico Angelilli <code@fedang.net> | 2024-01-02 19:02:03 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-01-02 19:02:03 +0100 |
| commit | e4d74a176393fcfb125ca7d1a48945572c8b6b24 (patch) | |
| tree | fd78a9dfa07849179d4ccef3c9637e1cc101ea2f /extra | |
| parent | 9604362274a7ddfdd339e57de8180c5d9d843c9a (diff) | |
Improve empty crypt handling
Diffstat (limited to 'extra')
| -rwxr-xr-x | extra/crypt.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/crypt.zsh b/extra/crypt.zsh index 2e1e57a..3055baf 100755 --- a/extra/crypt.zsh +++ b/extra/crypt.zsh @@ -7,7 +7,7 @@ _crypt() { local IFS=$'\n' local location zstyle -s ":completion:${curcontext}:" location location || location="${CRYPT_PATH:-$HOME/.crypt}" - _values -C 'entries' ${$(crypt list --plain | sed -e "s#\([^[:space:]]*\)[[:space:]]*\(.*\)#\1\[\2\]#g" | sort):-""} + _values -C 'entries' ${$(crypt list --plain 2>/dev/null | sed -e "s#\([^[:space:]]*\)[[:space:]]*\(.*\)#\1\[\2\]#g" | sort):-""} } _crypt |
