From 049a18a482c572b08fb9088c7cfd5fc543ea7e9f Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Wed, 1 Oct 2025 20:18:47 -0400 Subject: [PATCH] Remove stock .bashrc and .bash_profile --- applications.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/applications.go b/applications.go index 6d41ebb..41601a3 100644 --- a/applications.go +++ b/applications.go @@ -1,7 +1,10 @@ package main import ( + "os" + "github.com/rwinkhart/go-boilerplate/front" + "github.com/rwinkhart/go-boilerplate/other" ) func applications() { @@ -31,6 +34,14 @@ func applications() { case 5: managePackages("-S", []string{"zsh", "zsh-autosuggestions", "zsh-syntax-highlighting"}) writeFile(mountPoint+"/home/"+getUsername()+"/.zshrc", zshrc, getUsername(), 0644) + err := os.RemoveAll(mountPoint + "/home/" + getUsername() + "/.bash_profile") + if err != nil { + other.PrintError("Failed to remove .bash_profile", 1) + } + err = os.RemoveAll(mountPoint + "/home/" + getUsername() + "/.bashrc") + if err != nil { + other.PrintError("Failed to remove .bashrc", 1) + } if !doAll { break