feat: Add systemd user service for automatic daemon startup and update installation instructions.
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user