]> arthur.barton.de Git - ax-zsh.git/commitdiff
ssh: Slightly enhance file comments
authorAlexander Barton <alex@barton.de>
Sat, 6 Mar 2021 14:31:07 +0000 (15:31 +0100)
committerAlexander Barton <alex@barton.de>
Sat, 6 Mar 2021 14:31:07 +0000 (15:31 +0100)
default_plugins/ssh/ssh.zshrc

index 1afc7f469116c1996f816127ca176add79dff17a..0faab3c95fdd3b7c826121a4439896431faa629c 100644 (file)
@@ -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