Skip to content

Commit

Permalink
feat: update github command
Browse files Browse the repository at this point in the history
  • Loading branch information
YasminTeles committed Aug 9, 2024
1 parent 7594b40 commit abe9f53
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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; \
Expand All @@ -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
Expand Down
3 changes: 1 addition & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
Expand Down

0 comments on commit abe9f53

Please sign in to comment.