Profile avatar

Chizi Victor

Software Engineer

Stow .dotfiles

Steps to backup dotfiles using gnu stow

Ensure stow is installed. Using apt, it can be installed with…

sudo apt install -y stow

Workflow

In the root dir of the .dotfiles repo, to see changes before applying the symlinks, run

# In the root dir of the .dotfiles repo
# to see changes before applying the symlinks, run
stow --adopt -nvt ~ *

# Remove the -n flag to apply the symlinks
stow --adopt -vt ~ *

# To remove the symlinks, add the -D flag
stow --adopt -vDt ~ *

Optionally, I like to set the verbose level to 2 so I can see more info about the process.

stow --adopt --verbose=2 -t ~ *