summaryrefslogtreecommitdiff
path: root/plugins/keychain
diff options
context:
space:
mode:
authorCarlo Sala <carlosalag@protonmail.com>2025-07-21 10:04:10 +0200
committerCarlo Sala <carlosalag@protonmail.com>2025-07-21 10:04:10 +0200
commit8425e9774ea4be998a51c8c73c7f6e33000f9176 (patch)
tree6db1907986728d721cecee07ef95cd72c50a0832 /plugins/keychain
parentdc3bbcda2689b26cfb16e714225e263fa74e3f70 (diff)
downloadzsh-8425e9774ea4be998a51c8c73c7f6e33000f9176.tar.gz
zsh-8425e9774ea4be998a51c8c73c7f6e33000f9176.tar.bz2
zsh-8425e9774ea4be998a51c8c73c7f6e33000f9176.zip
fix(keychain): reversed logic
Closes #13106
Diffstat (limited to 'plugins/keychain')
-rw-r--r--plugins/keychain/keychain.plugin.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/keychain/keychain.plugin.zsh b/plugins/keychain/keychain.plugin.zsh
index 8caf671f5..ce5351bce 100644
--- a/plugins/keychain/keychain.plugin.zsh
+++ b/plugins/keychain/keychain.plugin.zsh
@@ -24,9 +24,9 @@ function {
# start keychain, only use --agents for versions below 2.9.0
autoload -Uz is-at-least
if is-at-least 2.9 "$version_string"; then
- keychain ${^options:-} --agents ${agents:-gpg} ${^identities} --host $SHORT_HOST
- else
keychain ${^options:-} ${^identities} --host $SHORT_HOST
+ else
+ keychain ${^options:-} --agents ${agents:-gpg} ${^identities} --host $SHORT_HOST
fi
# Get the filenames to store/lookup the environment from