1
0

feat: Add systemd user service for automatic daemon startup and update installation instructions.

This commit is contained in:
2026-02-28 12:49:15 +01:00
parent 27d7d11b63
commit 6d2ad488d2
4 changed files with 21 additions and 0 deletions

View File

@@ -14,5 +14,12 @@ if [ -d "/usr/share/zsh/site-functions" ]; then
sudo cp _toak /usr/share/zsh/site-functions/_toak
fi
echo "Installing and starting systemd user service..."
sudo mkdir -p ~/.config/systemd/user
sudo cp toak.service ~/.config/systemd/user/
sudo systemctl --user daemon-reload
sudo systemctl --user enable --now toak.service
echo "Installation complete! You can now run 'toak' from anywhere."
echo "Note: You may need to restart your zsh shell or run 'autoload -Uz compinit && compinit' to enable completions."
echo "The Toak daemon is running in the background."