This repository contains configuration files that I don't want to have to lose so I'm putting them under version control.
The easiest install is to download the release for your operating system and architecture and run it.
export VERSION=1.2.0
curl -fsSL https://github.com/shakefu/home/releases/download/v${VERSION}/home-v${VERSION}-darwin-amd64.tar.gz | tar xz > home
./home setup
Alternatively, you can clone this repository, and then run the home.go
command to install everything.
git clone https://github.com/shakefu/home.git
cd home
go run home.go setup
curl [src] > .vim/autoload/pathogen.vim
.import "home"
func CliCopyFiles(args *CliArgs)
func CliInstall(args *CliArgs, names ...string)
CliInstall runs all the embedded install scripts or exit. This will run all the install scripts, or a specified list of script names. If there is an error with any script it will exit this process.
func CliStatus(args *CliArgs, names ...string)
func Run(command string) int
Run invokes a subprocess command from a string using shell splitting.
func RunCommand(argv []string) int
RunCommand a subprocess command from a tokenized array of string arguments.
func Targets(args *CliArgs, names *[]string) (map[string]bool, []string)
Targets returns a map and a deduplicated slice of all the names given.
type CliArgs struct {
// Options
DryRun bool
Upgrade bool
Debug bool
Color string
// Args
Command string
Os string
Arch string
Names []string
}
type Script struct {
// contains filtered or unexported fields
}
func (script *Script) Run(args ...string) (int, error)
func (script *Script) RunOrExit(args ...string) int
Generated by gomarkdoc