mirror of
https://github.com/rwinkhart/cachyos-postinstall-helper.git
synced 2026-09-06 00:57:20 -04:00
Remove stock .bashrc and .bash_profile
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"os"
|
||||||
|
|
||||||
"github.com/rwinkhart/go-boilerplate/front"
|
"github.com/rwinkhart/go-boilerplate/front"
|
||||||
|
"github.com/rwinkhart/go-boilerplate/other"
|
||||||
)
|
)
|
||||||
|
|
||||||
func applications() {
|
func applications() {
|
||||||
@@ -31,6 +34,14 @@ func applications() {
|
|||||||
case 5:
|
case 5:
|
||||||
managePackages("-S", []string{"zsh", "zsh-autosuggestions", "zsh-syntax-highlighting"})
|
managePackages("-S", []string{"zsh", "zsh-autosuggestions", "zsh-syntax-highlighting"})
|
||||||
writeFile(mountPoint+"/home/"+getUsername()+"/.zshrc", zshrc, getUsername(), 0644)
|
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 {
|
if !doAll {
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user