From e24afa0dd78d58320ac2d92436cd13c3102b5843 Mon Sep 17 00:00:00 2001 From: Yasmin Teles Date: Fri, 9 Aug 2024 11:50:17 -0300 Subject: [PATCH] feat: update github command --- Makefile | 9 ++++++--- install.sh | 3 +-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 452d144..0348176 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: help check_clean del ssh backup github gh-dash colima check-scripts macos +.PHONY: help check_clean del ssh backup github gh-dash gh-login colima check-scripts macos help: ## Show help. @printf "A set of environment management commands.\n" @@ -22,13 +22,13 @@ del: check_clean ## Delete your development environment. ssh: ## Copy the SSH public key to your clipboard. @pbcopy < ~/.ssh/id_ed25519.pub @echo "The SSH public key is available in your clipboard." - @echo "Add the SSH public key to your account on GitHub or GitLab. See your profile settings for more information." + @echo "Add the SSH public key to your account on GitLab. See your profile settings for more information." backup: ## Back up your applications list. @echo "Backing up your applications list..." @brew bundle dump --file=./brew/Brewfile --force -github: ## Clone all projects of a username at once in Github. +github: gh-dash gh-login ## Clone all projects of a username at once in Github. @echo "Please enter some information" @read -r -p "What is the organization or user name? " owner; \ read -r -p "What is the topic? " topic; \ @@ -39,6 +39,9 @@ gh-dash: ## Install gh-dash extension. @gh extension install dlvhdr/gh-dash @stow gh-dash +gh-login: ## Login to GitHub. + gh auth login --git-protocol ssh --web + colima: ## Setting up Colima and create a docker compose plugin. @echo '{"credsStore":"osxkeychain"}' > ~/.docker/config.json @mkdir -p ~/.docker/cli-plugins diff --git a/install.sh b/install.sh index a8c5b7f..f20a43d 100644 --- a/install.sh +++ b/install.sh @@ -139,9 +139,8 @@ ssh-add ~/.ssh/id_ed25519 >/dev/null printf "\n" title_msg "Next steps:" -echo -e "- Run \033[1mmake ssh\033[0m to copy your SSH public Key and past it into your GitHub or GitLab account." +echo -e "- Run \033[1mmake ssh\033[0m to copy your SSH public Key and past it into your GitLab account." echo -e "- If you will use GitHub, run \033[1mmake github\033[0m to clone all GitHub repository for Projects directory." -echo -e "- If you will use GitHub, run \033[1mmake gh-dash\033[0m to install and enable gh dashboard in your terminal." # -- Happy end ----------------------------------------------------------------- success_msg "Everything is ready!"