updated sparrow config; updated magefiles

This commit is contained in:
Dan Anglin 2024-09-12 05:37:37 +01:00
parent 26f85a6778
commit 5f07ee6209
3 changed files with 18 additions and 12 deletions

View file

@ -1,8 +1,7 @@
{
"bashProfile": {
"manage": true,
"filename": ".bash_profile",
"aliases": {},
"filename": ".bashrc",
"commands": [
{
"command": "shopt -s histappend",
@ -11,20 +10,22 @@
{
"command": "set -o vi",
"description": "Activate vi mode."
},
{
"command": "eval \"$(SHELL=/bin/sh lesspipe.sh)\"",
"description": "Make less more friendly for non-text input files"
}
],
"environmentVariables": {},
"sessionPaths": [
{
"path": ".local/goblin",
"description": "the directory of go binaries"
},
{
"path": "Applications",
"description": "the AppImage directory"
},
{
"path": ".local/goblin",
"description": "the directory of go binaries"
}
],
"xdgDirectories": {}
]
},
"directories": {
"useDefaultDirectories": true,

View file

@ -9,8 +9,8 @@ import (
"text/template"
)
// BashProfile manages the user's Bash Profile using their configuration and the Bash Profile template.
func BashProfile() error {
// Bashprofile manages the user's Bash Profile using their configuration and the Bash Profile template.
func Bashprofile() error {
const (
bashProfileTemplateFile string = "bash/profile.gotmpl"
managedBashProfile string = "managed/bash_profile"

View file

@ -8,7 +8,12 @@ var Default = Manage
// Manage runs all the management tasks.
func Manage() error {
mg.Deps(Directories, Files, Templates)
mg.Deps(
Bashprofile,
Directories,
Files,
Templates,
)
return nil
}