From 9799ddb15c32787fa211040ac841c180fbcfa81f Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Mon, 10 Apr 2017 11:03:02 +0200 Subject: [PATCH] ssh: Make sure that XDG_RUNTIME_DIR is set & valid --- default_plugins/ssh/ssh.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default_plugins/ssh/ssh.zshrc b/default_plugins/ssh/ssh.zshrc index 234459f..c7f5c85 100644 --- a/default_plugins/ssh/ssh.zshrc +++ b/default_plugins/ssh/ssh.zshrc @@ -27,7 +27,7 @@ ax_hostname_prompt_functions=($ax_hostname_prompt_functions _ax_ssh_prompt) [[ ! -r "$SSH_AUTH_SOCK" ]] && unset SSH_AUTH_SOCK # Save SSH environment when available: -if [[ -n "$SSH_AUTH_SOCK" ]]; then +if [[ -n "$SSH_AUTH_SOCK" && -d "$XDG_RUNTIME_DIR" ]]; then # Save current environment when no state exists or is invalid. if [[ -r "$XDG_RUNTIME_DIR/ssh-env.sh" ]]; then ( -- 2.39.2