From 00f3fa2c40c707c84d3dc416a1e1db25d78fcfaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Wed, 25 Mar 2020 10:22:31 +0100 Subject: [PATCH] keychain: define SHORT_HOST if not defined Fixes problems when using the plugin via antibody or antigen. --- plugins/keychain/keychain.plugin.zsh | 3 +++ 1 file changed, 3 insertions(+) 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