#!/bin/bash my_path=$(dirname $(realpath "$0")) cd $my_path cp anime-rss.timer ~/.config/systemd/user/ sed "s|PATH|$my_path|g" anime-rss.service > ~/.config/systemd/user/anime-rss.service