#!/bin/bash # Exit immediately if a command exits with a non-zero status set -e echo "Stopping and disabling Toak systemd service..." systemctl --user stop toak.service || true systemctl --user disable toak.service || true echo "Removing systemd service file..." sudo rm -f ~/.config/systemd/user/toak.service systemctl --user daemon-reload echo "Removing Toak executable..." sudo rm -f /usr/bin/toak if [ -f "/usr/share/zsh/site-functions/_toak" ]; then echo "Removing zsh completions..." sudo rm -f /usr/share/zsh/site-functions/_toak fi echo "Toak has been successfully uninstalled."