Skip to content

Commit

Permalink
create: Brewfile dotfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian committed Sep 28, 2024
1 parent 86c31da commit d33b674
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ func main() {
slog.Info("Homebrew already installed", slog.String("path", homebrewPath))
}

// Update and upgrade Homebrew
slog.Info("Updating and upgrading Homebrew...")
createExec("brew update")
createExec("brew upgrade")
// // Update and upgrade Homebrew
// slog.Info("Updating and upgrading Homebrew...")
// createExec("brew update")
// createExec("brew upgrade")

// Install packages from Brewfile
homeDir := setHomeDir()
brewfilePath := filepath.Join(homeDir, "dotfiles", "homebrew", "Brewfile")
slog.Info("Installing packages from Brewfile...")
brewOutput, err := script.Exec("brew bundle --verbose --file=" + brewfilePath).String()
slog.Info("Installing packages from Brewfile...", slog.String("Brewpath", brewfilePath))
brewOutput, err := script.Exec("brew bundle -v --file=" + brewfilePath).String()
if err != nil {
log.Fatalf("Failed to run Brewfile: %s", err)
}
Expand Down Expand Up @@ -71,6 +71,7 @@ func main() {
stowDir("dotfiles/config", ".config/gh", "gh")
stowDir("dotfiles/config", ".config/zellij", "zellij")
stowDir("dotfiles", "", "zsh")
stowDir("dotfiles", "", "homebrew")
stowDir("dotfiles", "", "aliases")
stowDir("dotfiles", "", "git")
stowDir("dotfiles", ".steampipe/config", "steampipe")
Expand Down

0 comments on commit d33b674

Please sign in to comment.