Remove stock .bashrc and .bash_profile

This commit is contained in:
2025-10-01 20:18:47 -04:00
parent 8f0e621f78
commit 049a18a482
+11
View File
@@ -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