From 465939a58c7ce8105fa26a509af99dd010ad8f10 Mon Sep 17 00:00:00 2001 From: Andrew Titmuss Date: Sat, 15 Oct 2016 23:08:53 +1100 Subject: [PATCH] create .ssh directory if non-existent --- plugins/ssh-agent/ssh-agent.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ssh-agent/ssh-agent.plugin.zsh b/plugins/ssh-agent/ssh-agent.plugin.zsh index 794dabe1..c2d4b4b5 100644 --- a/plugins/ssh-agent/ssh-agent.plugin.zsh +++ b/plugins/ssh-agent/ssh-agent.plugin.zsh @@ -1,6 +1,6 @@ if [[ ! -d $HOME/.ssh ]]; then - echo $HOME/.ssh not found, exiting... - return 1 + echo "$HOME/.ssh not found, creating now..." + mkdir ~/.ssh && chmod 700 ~/.ssh fi typeset _agent_forwarding _ssh_env_cache