X-Git-Url: https://arthur.barton.de/gitweb/?p=ax-zsh.git;a=blobdiff_plain;f=default_plugins%2Fssh%2Fssh.zshrc;fp=default_plugins%2Fssh%2Fssh.zshrc;h=0faab3c95fdd3b7c826121a4439896431faa629c;hp=1afc7f469116c1996f816127ca176add79dff17a;hb=f56e01e1b28dea7522423c4793c4e4ae4af26685;hpb=4099888890cbb003741c45968087c9c5f5fde833 diff --git a/default_plugins/ssh/ssh.zshrc b/default_plugins/ssh/ssh.zshrc index 1afc7f4..0faab3c 100644 --- a/default_plugins/ssh/ssh.zshrc +++ b/default_plugins/ssh/ssh.zshrc @@ -42,8 +42,9 @@ fi # Save SSH environment when available: if [[ -n "$SSH_AUTH_SOCK" && -d "$XDG_RUNTIME_DIR" ]]; then - # Save current environment when no state exists or is invalid. + # Save current environment when no state exists or state file is invalid. if [[ -r "$XDG_RUNTIME_DIR/ssh-env.sh" ]]; then + # Check existing state file ... ( source "$XDG_RUNTIME_DIR/ssh-env.sh" if [[ -z "$SSH_AUTH_SOCK" || ! -r "$SSH_AUTH_SOCK" ]]; then