From db36553212f1b43bf0391e9ea81a0ae64dae2137 Mon Sep 17 00:00:00 2001 From: Yigit Colakoglu Date: Tue, 6 Apr 2021 01:11:27 +0300 Subject: [PATCH] Ssh support --- install.sh | 2 ++ profile | 1 + 2 files changed, 3 insertions(+) diff --git a/install.sh b/install.sh index 327c7a7d..cf1d2ea9 100755 --- a/install.sh +++ b/install.sh @@ -143,6 +143,8 @@ mkdir -p "$HOME/.local/share/zsh" mkdir -p "$XDG_DATA_HOME/mail" mkdir -p "$XDG_CONFIG_HOME/git" mkdir -p "$XDG_CACHE_HOME/surf" +mkdir -p "$HOME/.ssh" +echo "AddKeysToAgent yes" > "$HOME/.ssh/config" chmod 700 "$GNUPGHOME" touch "$XDG_CONFIG_HOME/git/config" diff --git a/profile b/profile index cd0011bd..175c4ce4 100755 --- a/profile +++ b/profile @@ -79,6 +79,7 @@ esac if [ ! "$SSH_AUTH_SOCK" ]; then eval "$(ssh-agent | head -n 2)" + grep -slR "PRIVATE" ~/.ssh/ | xargs ssh-add > /dev/null 2> /dev/null & fi if [ "$DISPLAY" = "" ] && [ "$(tty)" = /dev/tty1 ]; then