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

Loading…
Cancel
Save