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