#!/usr/bin/env bash rm -f "$HOME/.config/systemd/user/autostart.target.wants/"* autostart_units=() while IFS='' read -r line do autostart_units+=("autostart@$line.service") done < <(_list "${args[groups]:-}") systemctl --user add-wants autostart.target "${autostart_units[@]}"