My current approach to managing dotfiles.
- Stow
-
Clone
dotfilesrepository to local machine. (~/.dotfiles)git clone [email protected]:alex-thorne/dotfiles.git ~/.dotfiles
-
Run
install.shto adopt dotfiles fromdotfilesrepository to user$HOME.cd ~/.dotfiles chmod +x ./install.sh ./install.sh
Stow tree structure (-> indicates created symlink)
/Users/alex
├── .dotfiles
│ ├── vim
│ │ └── .vimrc
├── .vimrc -> .dotfiles/vim/.vimrc
Install script passes --dotfiles stow arg, replacing "dot-..." naming convention.
By default stow will not overwrite existing files found with attempted packages to be stowed. Conflicts should be resolved manually via backup/move/delete or --adopt.