From: Alexander Barton Date: Sat, 6 Mar 2021 14:31:07 +0000 (+0100) Subject: ssh: Slightly enhance file comments X-Git-Url: https://arthur.barton.de/gitweb/?p=ax-zsh.git;a=commitdiff_plain;h=f56e01e1b28dea7522423c4793c4e4ae4af26685 ssh: Slightly enhance file comments --- 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