dotfiles/README.md

27 lines
573 B
Markdown
Raw Permalink Normal View History

2024-09-30 01:00:16 +02:00
# Dotfiles config repo (neovim, bash, git, sway ...)
2024-09-30 14:25:12 +02:00
Save this service config to `$XDG_CONFIG_HOME/systemd/user/dotfiles.service`:
2024-09-30 01:00:16 +02:00
```
[Unit]
2024-10-01 21:32:21 +02:00
Description=Stow dotfiles linker
2024-09-30 01:00:16 +02:00
Documentation=man:stow(1)
2024-10-06 22:35:42 +02:00
Before=basic.target
2024-09-30 01:00:16 +02:00
[Service]
Type=oneshot
WorkingDirectory=%h/dev/dotfiles
RemainAfterExit=true
2024-09-30 01:47:02 +02:00
ExecStart=/usr/bin/stow --target=%h --adopt dotfiles/
2024-10-01 21:32:21 +02:00
ExecStop=/usr/bin/stow --target=%h --delete dotfiles/
2024-09-30 01:00:16 +02:00
[Install]
WantedBy=default.target
```
2024-10-06 22:35:42 +02:00
Update `WorkingDirectory=%h/dev/dotfiles` and enable the service:
2024-09-30 01:00:16 +02:00
```sh
systemctl --user enable --now dotfiles.service
```