Skip to content

Latest commit

 

History

History
182 lines (132 loc) · 5.21 KB

README.md

File metadata and controls

182 lines (132 loc) · 5.21 KB

Home

This repository contains configuration files that I don't want to have to lose so I'm putting them under version control.

Installing

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

Breadcrumbs

  • oh-my-zsh - zsh plugin manager and framework
  • powerlevel10k - super configurable zsh prompt theme
  • zsh-autosuggestions - nice and convenient prompt completion
  • zsh-syntax-highlighting - awesome colorized prompt syntax with error highlighting
  • exa - Better ls
  • thefuck - Autofix commands
  • fd - Better find
  • Pathogen - We would add this as a subtree but it conflicts with the existing .vim path
    • src - To be used with curl [src] > .vim/autoload/pathogen.vim.
  • ProjectRoot - Handy switching the current working directory
  • CtrlP - Easily open files within the current project
  • Jedi Vim - Awesome Python autocompletion
  • Dockerfile.vim - Syntax highlighting for Dockerfiles
  • Tabmerge - Merging tabs made easy
  • Supertab - Awesome tab completion
  • YAJS - ES6 syntax highlighting and more
  • SwitchResX - Allow Mac to use nonstandard resolutions
  • MAS - Mac app store CLI

home

import "home"

Index

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

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

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

type CliArgs struct {
    // Options
    DryRun  bool
    Upgrade bool
    Debug   bool
    Color   string
    // Args
    Command string
    Os      string
    Arch    string
    Names   []string
}

type Script

type Script struct {
    // contains filtered or unexported fields
}

func (*Script) Run

func (script *Script) Run(args ...string) (int, error)

func (*Script) RunOrExit

func (script *Script) RunOrExit(args ...string) int

Generated by gomarkdoc