My current approach to managing dotfiles.
- Stow
-
Clone
dotfiles
repository to local machine. (~/.dotfiles)git clone [email protected]:alex-thorne/dotfiles.git ~/.dotfiles
-
Run
install.sh
to adopt dotfiles fromdotfiles
repository to user$HOME
. (stow --adopt
overwrites any existing files! Move/backup existing dotfiles in your user$HOME
first if needed)cd ~/.dotfiles chmod +x ./install.sh ./install.sh
Stow tree structure (->
indicates created symlink)
/Users/alex
├── .dotfiles
│ ├── vim
│ │ └── .vimrc
├── .vimrc -> .dotfiles/vim/.vimrc