#!/usr/bin/env bash systemctl "$@" list-unit-files \ | tail -n +2 \ | head -n -2 \ | cut -d' ' -f1 \ | fzf \ --preview="systemctl $@ status {}" \ --preview-window "bottom,follow" \ --bind "alt-1:change-preview:systemctl $@ status {}" \ --bind "alt-2:change-preview:journalctl $@ -fu {}"