From 8f16ad68629df3d9271b1a7881e958d82c634cab Mon Sep 17 00:00:00 2001 From: V Date: Thu, 24 Nov 2022 21:17:39 +0400 Subject: [PATCH] key --- dot_scripts/install_base.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dot_scripts/install_base.sh b/dot_scripts/install_base.sh index 8c3b2f8..bed1e70 100755 --- a/dot_scripts/install_base.sh +++ b/dot_scripts/install_base.sh @@ -23,3 +23,11 @@ paru --needed --noconfirm -Syu paru-bin ttf-cascadia-code # Chezmoi apply dotfiles chezmoi init --apply https://inex.dev/v/dotfiles.git +if [ -f "$HOME/.ssh/id_ed25519.pub" ]; then + echo "id_ed25519.pub exist" +else + echo "creating id_ed25519.pub..." + ssh-keygen -t ed25519 -f "$HOME/.ssh/id_ed22519" -N "" + eval "$(ssh-agent -s)" + ssh-add ~/.ssh/id_ed25519 +fi