All dotfiles managed with gnu stow.
Find a file
2024-10-06 05:10:16 +02:00
dotfiles bash: load completions 2024-10-06 05:10:16 +02:00
README.md doc: add ExecStop and fix typo 2024-10-01 21:32:21 +02:00

Dotfiles config repo (neovim, bash, git, sway ...)

Save this service config to $XDG_CONFIG_HOME/systemd/user/dotfiles.service:

[Unit]
Description=Stow dotfiles linker
Documentation=man:stow(1)
Before=wayland-session.target
Conflicts=wayland-session.target

[Service]
Type=oneshot
WorkingDirectory=%h/dev/dotfiles
RemainAfterExit=true
ExecStart=/usr/bin/stow --target=%h --adopt dotfiles/
ExecStop=/usr/bin/stow --target=%h --delete dotfiles/

[Install]
WantedBy=default.target

(and enable it:)

systemctl --user enable --now dotfiles.service