dotfiles

package
v0.0.40 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2026 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultModularDotfiles = []string{
	".zshrc",
	".profile",
	".aliases",
	".gitconfig",
	".tmux.conf",
	".vimrc",
	".ideavimrc",
	".bashrc",
	".git-shellrc",
	".node-shellrc",
	".go-shellrc",
}

DefaultModularDotfiles lists the dotfiles that, if present in the dotfiles repo, are expected to be symlinked into $HOME by the install script. Entries not present in the repo are silently skipped — this list is forward-looking and will grow as the dotfiles repo adds modules.

Functions

This section is empty.

Types

type DotfilesSetup added in v0.0.11

type DotfilesSetup struct {
	RepoURL       string
	LocalPath     string
	InstallScript string
	// ModularFiles are the dotfiles expected to be symlinked from LocalPath
	// into $HOME. Defaults to DefaultModularDotfiles; override in tests.
	ModularFiles []string
}

func NewDotfilesSetup added in v0.0.11

func NewDotfilesSetup(repoURL, localPath, installScript string) *DotfilesSetup

func (DotfilesSetup) Install added in v0.0.11

func (d DotfilesSetup) Install() (*bytes.Buffer, error)

func (DotfilesSetup) Name added in v0.0.11

func (d DotfilesSetup) Name() string

func (DotfilesSetup) Uninstall added in v0.0.11

func (d DotfilesSetup) Uninstall() (*bytes.Buffer, error)

func (DotfilesSetup) Validate added in v0.0.11

func (d DotfilesSetup) Validate() (out *bytes.Buffer, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL