Skip to content

Commit

Permalink
fixup! feat: add ssh key script
Browse files Browse the repository at this point in the history
  • Loading branch information
YasminTeles committed Mar 6, 2024
1 parent 256e736 commit 4b4cda0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ help: ## Show help.

del: ## delete your environment configuration
@stow --dotfiles -D git
@stow -t ~/.ssh -D ssh
@rm -rf ~/Projects
@rm -rf ~/.ssh/id_ed25519 ~/.ssh/id_ed25519.pub

Expand Down
3 changes: 2 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

read -p "What is your email? " GIT_EMAIL

print "\nPlease wait! It will configure your environment. \n"
printf "\nPlease wait! It will configure your environment.\n"
echo "[1/4] Creating the Projects folder..."
mkdir ~/Projects

Expand All @@ -11,6 +11,7 @@ git clone https://github.com/YasminTeles/dotfiles.git ~/.dotfiles

cd ~/.dotfiles
stow --dotfiles git
stow -t ~/.ssh ssh

echo "[3/4] Configuring Git..."
git config --global user.email $GIT_EMAIL
Expand Down
3 changes: 3 additions & 0 deletions ssh/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Host github.com
AddKeysToAgent yes
IdentityFile ~/.ssh/id_ed25519

0 comments on commit 4b4cda0

Please sign in to comment.