tohru

command module
v0.0.0-...-2f09cd6 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: MIT Imports: 4 Imported by: 0

README

tohru

a simple dotfiles manager.

Install

go install github.com/olimci/tohru

Usage

# install application files (optionally load a source immediately)
tohru install [source]
# load some dotfiles
tohru load [path]
# reload current source
tohru reload
# unload current source
tohru unload
# validate a source manifest without applying
tohru validate [source]
# validate and print resolved import tree
tohru validate --tree [source]
# see what files are being tracked by tohru
tohru status

tohru will automatically take backups of files that might be clobbered, and will automatically restore them once the conflicting source is unloaded. this behaviour is configurable in config.

Manifest

dotfiles are defined with a tohru.toml file:

[tohru]
version = "0.1.0"

[source]
name = "my-dotfiles"
description = "personal setup"

# import shared manifest fragments
[[import]]
path = "manifests/base.toml"

# import only on matching platform
[[import]]
path = "manifests/darwin.toml"
os = ["darwin"]
arch = ["arm64"]

# create a symlink
[[link]]
to = "zshrc"
from = "~/.zshrc"

# copy a file
[[file]]
source = "gitconfig"
dest = "~/.gitconfig"

# create a dir
[[dir]]
path = "~/.config/nvim"
tracked = false # disable tracking for dir

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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