Skip to content

Commit

Permalink
feat: add shell config command
Browse files Browse the repository at this point in the history
  • Loading branch information
YasminTeles committed Mar 17, 2024
1 parent 9020f47 commit 0883d77
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: help check_clean del ssh backup check-scripts
.PHONY: help check_clean del ssh zsh backup check-scripts

help: ## Show help.
@printf "A set of environment management commands.\n"
Expand All @@ -18,6 +18,10 @@ del: check_clean ## Delete your development environment.
@rm -rf ~/.oh-my-zsh
@brew uninstall --force $(shell brew list)

zsh: ## Change shell to zsh mode
@chsh -s $(which zsh)
@echo "My current shell is $(SHELL)."

ssh: ## Copy the SSH public key to your clipboard.
@pbcopy < ~/.ssh/id_ed25519.pub
@echo "The SSH public key is available in your clipboard."
Expand Down
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@ Insert this into a macOS Terminal or Linux shell prompt. The script will detail
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/YasminTeles/dotfiles/main/install.sh)"
```

### Post-Installation

Add the SSH public key to your account on GitHub or GitLab. Use `make ssh` to copy the SSH public key to your clipboard.

```bash
make ssh
```

## What's included?

All my command-line tools, applications, and their configurations. Have fun 😎💅
Expand Down
3 changes: 2 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Tells the shell script to exit if it encounters an error
set -e

# Print a step description
TOTAL_STEPS=7
STEP=1
function step_msg {
Expand Down Expand Up @@ -46,7 +47,6 @@ brew bundle install --file=~/Brewfile

# -- Oh My Zsh -----------------------------------------------------------------
step_msg "Installing the Oh My Zsh"
# chsh -s $(which zsh)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
rm -rf ~/.zshrc
stow --dotfiles zsh
Expand All @@ -67,6 +67,7 @@ ssh-add ~/.ssh/id_ed25519
echo -e "\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 zsh\033[0m to change your shell to zsh mode."

# -- Happy end -----------------------------------------------------------------
printf "\n\nSuccess: Everything is ready!"
Expand Down

0 comments on commit 0883d77

Please sign in to comment.