From 28b75c37503fef9a34cde34b22aa1a3254d8848b Mon Sep 17 00:00:00 2001 From: Yasmin Teles Date: Wed, 6 Mar 2024 17:23:28 -0300 Subject: [PATCH] fixup! feat: add ssh key script --- Makefile | 5 ++--- install.sh | 3 +-- ssh/{ => .ssh}/config | 0 3 files changed, 3 insertions(+), 5 deletions(-) rename ssh/{ => .ssh}/config (100%) diff --git a/Makefile b/Makefile index e8d1339..75c786f 100644 --- a/Makefile +++ b/Makefile @@ -8,10 +8,9 @@ help: ## Show help. @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\t\033[36m%-30s\033[0m %s\n", $$1, $$2}' del: ## delete your environment configuration - @stow --dotfiles -D git - @stow -t ~/.ssh -D ssh + @stow --dotfiles -D git ssh @rm -rf ~/Projects - @rm -rf ~/.ssh/id_ed25519 ~/.ssh/id_ed25519.pub + @rm -rf ~/.ssh/id_ed25519 ~/.ssh/id_ed25519.pub ~/.ssh/config ssh: ## Copy the SSH public key to your clipboard. @pbcopy < ~/.ssh/id_ed25519.pub diff --git a/install.sh b/install.sh index b6f5252..be74d9d 100644 --- a/install.sh +++ b/install.sh @@ -10,8 +10,7 @@ echo "[2/4] Setting up dotfiles..." git clone https://github.com/YasminTeles/dotfiles.git ~/.dotfiles cd ~/.dotfiles -stow --dotfiles git -stow -t ~/.ssh ssh +stow --dotfiles git ssh echo "[3/4] Configuring Git..." git config --global user.email $GIT_EMAIL diff --git a/ssh/config b/ssh/.ssh/config similarity index 100% rename from ssh/config rename to ssh/.ssh/config