6 ms·
GNU Stow is _great_ for this. I have the following in my dotfiles dir: [~/code/dotfiles]$ tree -a -R -L 2 ├── aws │ └── .aws ├── git │
by codebeaker 7y ago
GNU Stow is _great_ for this. I have the following in my dotfiles dir:
[~/code/dotfiles]$ tree -a -R -L 2
├── aws
│ └── .aws
├── git
│ ├── .gitconfig
│ └── .gitignore_global
├── .gitignore
├── .gitmodules
├── gpg
│ └── .gnupg
├── README
├── ssh
│ └── .ssh
├── tmux
│ ├── .tmux
│ └── .tmux.conf
├── vim
│ ├── .viminfo
│ └── .vimrc
└── zsh
├── .oh-my-zsh
└── .zshrc
I can then stow any of these into my home dir with:
$cd ~/code/dotfiles
$ stow -t $HOME git
That sets up a link from all the files in my home dir like:
.gitconfig -> code/dotfiles/git/.gitconfig