Skip to content

sgloutnikov/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Multi-platform Stowed Dotfiles

// TODO: Add Makefile or justfile to init new machines or easier stow targets

Requirements

Ensure the system has git and stow installed.

Usage

Maintain copies of dot files or config files in directories per architecture or some machine identifier. These files will get symlinked to a specified target directory upon running the stow command. Maintain nested directory structure as desired outcome in this repository. Stow works on packages (directories).

(REPO): stow [args] ARCH -t TARGET
REPO/ARCH/.somefile -> TARGET/.somefile
REPO/ARCH/.config/file -> TARGET/.config/file

Stowing

from the base of this repository.

Stow all darwin-arm64 files:

stow -v --no-folding --dotfiles darwin-arm64 -t $HOME

Stow testor package from darwin-arm64:

stow -v testor -d darwin-arm64 -t $HOME

Stowing dot-named files

Passing the --dotfiles argument to stow resulting in stowing dot-gitignore as .gitignore.

Stow Only File Not Parent Directory

Add --no-folding to link a file inside a .directory here without linking the entire directory. Ex: Stow only .gpg-agent.conf from .gnupg and don't link entire .gnupg to here.