From 0543c241dad72126fe73cd09865025c4af10e83e Mon Sep 17 00:00:00 2001 From: lub Date: Wed, 2 Aug 2023 18:50:44 +0200 Subject: [PATCH] implement ssh-agent and sway autostart --- dotfiles/bash/.bash_profile | 11 +++++++++++ dotfiles/ssh/.ssh/config | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 dotfiles/bash/.bash_profile diff --git a/dotfiles/bash/.bash_profile b/dotfiles/bash/.bash_profile new file mode 100644 index 0000000..28e0f89 --- /dev/null +++ b/dotfiles/bash/.bash_profile @@ -0,0 +1,11 @@ +# +# ~/.bash_profile +# + +[[ -f ~/.bashrc ]] && . ~/.bashrc + +if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then + eval $(ssh-agent) + + exec /usr/bin/sway +fi diff --git a/dotfiles/ssh/.ssh/config b/dotfiles/ssh/.ssh/config index 428d0fc..7923fdc 100644 --- a/dotfiles/ssh/.ssh/config +++ b/dotfiles/ssh/.ssh/config @@ -1,3 +1,6 @@ +Host * + AddKeysToAgent yes + Host kyle Hostname kyle.lubi.link IdentitiesOnly yes