diff --git a/hosts/sparrow.json b/hosts/sparrow.json index e7d7e99..579bad1 100644 --- a/hosts/sparrow.json +++ b/hosts/sparrow.json @@ -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, diff --git a/magefiles/bash_profile.go b/magefiles/bash_profile.go index 35c0fd9..b822780 100644 --- a/magefiles/bash_profile.go +++ b/magefiles/bash_profile.go @@ -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" diff --git a/magefiles/manage.go b/magefiles/manage.go index 27ee376..17a7eca 100644 --- a/magefiles/manage.go +++ b/magefiles/manage.go @@ -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 }