Skip to content

Commit

Permalink
feat: adds install script
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurgeek committed Jul 19, 2023
1 parent 15e5025 commit 571d27f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .chezmoiignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
install.sh
19 changes: 19 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
set -eufo pipefail

# Install Homebrew
command -v brew >/dev/null 2>&1 || \
(echo "🍺 Installing Homebrew" && /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)")

# Install chezmoi
command -v chezmoi >/dev/null 2>&1 || \
(echo "🏠 Installing chezmoi" && brew install chezmoi)

# Initialize chezmoi
echo "🚀 Initializing chezmoi" && chezmoi init --branch chezmoi https://github.com/arthurgeek/dotfiles

# Initialize chezmoi
echo "🪄 Applying dotfiles" && chezmoi apply

echo ""
echo "🏁 Done."

0 comments on commit 571d27f

Please sign in to comment.