diff --git a/plugins/keychain/keychain.plugin.zsh b/plugins/keychain/keychain.plugin.zsh index def97d8d1..1babf5a30 100644 --- a/plugins/keychain/keychain.plugin.zsh +++ b/plugins/keychain/keychain.plugin.zsh @@ -1,3 +1,6 @@ +# Define SHORT_HOST if not defined (%m = host name up to first .) +SHORT_HOST=${SHORT_HOST:-${(%):-%m}} + function _start_agent() { local agents local -a identities