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