Personal shell/editor/tmux config managed with GNU Stow.
If you plan to use this long-term, fork it so you can:
- keep your own changes
- sync upstream updates when you want
Install Stow before linking dotfiles.
brew install stowsudo apt update
sudo apt install -y stowsudo dnf install -y stowsudo pacman -S stowThis repo includes a .stowrc with:
--target=~(link into your home directory)- ignore rules for
.stowrcandDS_STORE
So from the repo root, you can just run:
stow .Or use the helper script:
./setup.sh# 1) Clone your fork
git clone <your-fork-url> ~/dotfiles
# 2) Enter repo
cd ~/dotfiles
# 3) Symlink files into $HOME
stow .- Add the file/folder inside this repo using the same path you want under
$HOME. - Re-run
stow .. - Commit and push to your fork.
Examples:
# add a new shell config
touch ~/dotfiles/.zshrc
# add a Neovim config path
mkdir -p ~/dotfiles/.config/nvim
touch ~/dotfiles/.config/nvim/init.lua
# relink everything
cd ~/dotfiles && stow .Run this any time you add/move files in the repo:
stow -R .stow -D .If Stow reports conflicts, you likely already have a real file at that destination in $HOME.
- back up existing file(s)
- remove or rename conflicting file(s)
- run
stow .again