Common and specific platform stowed dotfiles.
// TODO: Add Makefile or justfile to init new machines or one-off setup command.
- Repository Root -- Common platform
$HOMEfiles. _platform_-- Specific platform$HOMEfiles.__directory__-- Common or specifice platform/directoryfiles.
Ensure the system has git and stow installed.
Clone repo: git clone git@github.com:sgloutnikov/dotfiles.git ~/.stowfiles
Treat root of repository or _platform_ as $HOME (--target path). Add <stow-package> folders maintaining $HOME as parent structure inside.
stow -v --target $HOME <stow-package>
stow -v --no-folding --target $HOME tmux
Treat __directory__ as /directory (--target path). Add <stow-package> folders maintaining /directory as parent structure inside.
cd _linux_/__etc__
sudo stow -v --no-folding --target /etc <stow-package>Add --no-folding to link a file(s) inside a stow package without linking the entire directory. Ex: Stow only .gpg-agent.conf from .gnupg and don't link entire .gnupg to here. Another example is tmux, to only stow config without downloaded plugins. Useful for tools that produce additional artifacts which do not need to be saved in this repository.
Passing the --dotfiles argument to stow resulting in stowing dot-scripts as .scripts.