Add gitignore

master
Hugo Thunnissen 2 years ago
parent ce83d77984
commit 4cb4637114

@ -0,0 +1,4 @@
/.cache
.\#*
\#*\#
*~

@ -36,6 +36,8 @@ var bashAliases string
//go:embed git/config
var gitConfig string
//go:embed git/ignore
var gitIgnore string
var ErrAddUserFailExit = errors.New("useradd command returned no-zero exit code")
var ErrAddGroupFailExit = errors.New("groupadd command returned no-zero exit code")
@ -307,11 +309,11 @@ func main() {
elispThemeDir := home + "/.workspace/elisp-themes"
if _, err := os.Stat(elispThemeDir); os.IsNotExist(err) {
err = os.MkdirAll(elispThemeDir, 0600)
err = os.MkdirAll(elispThemeDir, 0755)
if err != nil {
fmt.Fprintln(
os.Stderr,
"Failed to create elisp theme dir in" + elispThemeDir,
"Failed to create elisp theme dir in"+elispThemeDir,
)
os.Exit(1)
}
@ -319,11 +321,12 @@ func main() {
}
files := map[string]string{
home + "/.emacs": initLisp,
home + "/.custom.el": customLisp,
home + "/.bash_aliases": bashAliases,
home + "/.emacs": initLisp,
home + "/.custom.el": customLisp,
home + "/.bash_aliases": bashAliases,
elispThemeDir + "/epaper-theme.el": elispEpaperTheme,
home + "/.gitconfig": gitConfig,
home + "/.gitconfig": gitConfig,
home + "/.gitignore": gitIgnore,
}
for file, contents := range files {

Loading…
Cancel
Save