• Nuno Goncalves's avatar
    ssh-agent: improvements (#6309) · a2062714
    Nuno Goncalves authored
    * ssh-agent: lock this script with a mkdir style mutex
    
    This script is a kind of singleton pattern and is not reentrant.
    If several shells are oppened in a fast sequence, then several
    independent ssh-agents would be created, which is not acceptable.
    A mutex is required.
    Signed-off-by: 's avatarNuno Goncalves <nunojpg@gmail.com>
    
    * ssh-agent: only start agent if .ssh dir exists
    
    To use the same profile system-wide, it might happen
    that the .ssh directory does not exist
    (typically $HOME/.ssh/). This would trigger a error.
    
    Creating the directory would be a option, but it
    usually will not make sense to do so because it means
    the user doesn't have ssh keys or config.
    Signed-off-by: 's avatarNuno Goncalves <nunojpg@gmail.com>
    
    * ssh-agent: adds lazy option to disable key loading on start
    
    Option is documented on updated README.md
    Signed-off-by: 's avatarNuno Goncalves <nunojpg@gmail.com>
    
    * ssh-agent: simplify agent-forwarding checking
    Signed-off-by: 's avatarNuno Goncalves <nunojpg@gmail.com>
    Co-authored-by: 's avatarRobby Russell <robby@planetargon.com>
    a2062714
Name
Last commit
Last update
.github Loading commit data...
cache Loading commit data...
custom Loading commit data...
lib Loading commit data...
log Loading commit data...
plugins Loading commit data...
templates Loading commit data...
themes Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.gitpod.Dockerfile Loading commit data...
.gitpod.yml Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE.txt Loading commit data...
README.md Loading commit data...
oh-my-zsh.sh Loading commit data...