浏览代码

keychain: pass host as argument to keychain (#8436)

matthewhembree 4 年之前
父节点
当前提交
903a3e9daa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/keychain/keychain.plugin.zsh

+ 1 - 1
plugins/keychain/keychain.plugin.zsh

@@ -15,7 +15,7 @@ function _start_agent() {
 	zstyle -a :omz:plugins:keychain options options
 
 	# start keychain...
-	keychain ${^options:-} --agents ${agents:-gpg} ${^identities}
+	keychain ${^options:-} --agents ${agents:-gpg} ${^identities} --host $SHORT_HOST
 
 	# Get the filenames to store/lookup the environment from
 	_keychain_env_sh="$HOME/.keychain/$SHORT_HOST-sh"