Using GNU stow to symlink these dotfiles to the right locations
Use this on a new machine
-
Get stow
-
Clone the repo into your home folder
-
cd into the
dotfiles
repo -
Run
stow .
sudo apt install stow git clone https://github.com/Laurensdc/dotfiles.git ~/dotfiles cd ~/dotfiles stow .
The structure of this repo represents the home dir.
Let's say we want to add our existing ~/.gitconfig to our dotfiles repo.
-
Back up the original file
-
Move it into the repo
-
Run
stow .
cp ~/.gitconfig ~/.gitconfig.bak mv ~/.gitconfig ~/dotfiles stow .
-
Push your git changes
The files in the top level of this repo will go straight to the home folder
.zshrc
for zsh shell config and aliases
.gitconfig
for global git config
.vimrc
for some old school vim config
Notes to self, this is probably not relevant to you, dear reader
- Check in darktable shortcut?