1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2026-02-12 20:31:00 +01:00

2 Commits

Author SHA1 Message Date
Kevin De Keyser
2ac69955e8 fix(termsupport): ensure non-error return code (#13217) 2025-07-21 11:11:35 +02:00
Carlo Sala
8425e9774e fix(keychain): reversed logic
Closes #13106
2025-07-21 10:04:10 +02:00
2 changed files with 3 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ function omz_termsupport_precmd {
# Runs before executing the command
function omz_termsupport_preexec {
[[ "${DISABLE_AUTO_TITLE:-}" != true ]] || return
[[ "${DISABLE_AUTO_TITLE:-}" != true ]] || return 0
emulate -L zsh
setopt extended_glob

View File

@@ -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