summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rwxr-xr-xsys10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys b/sys
index 3ca7ba5..64706a9 100755
--- a/sys
+++ b/sys
@@ -1,12 +1,12 @@
#!/usr/bin/env bash
systemctl "$@" list-unit-files \
- | tail -n +2 \
| head -n -2 \
- | cut -d' ' -f1 \
| fzf \
- --preview="systemctl $@ status {}" \
+ --layout=reverse \
+ --preview="systemctl $@ status {1}" \
--preview-window "bottom,follow" \
--header-first \
+ --header-lines 1 \
--header="alt-1: status, alt-2: logs" \
- --bind "alt-1:change-preview:systemctl $@ status {}" \
- --bind "alt-2:change-preview:journalctl $@ -fu {}"
+ --bind "alt-1:change-preview:systemctl $@ status {1}" \
+ --bind "alt-2:change-preview:journalctl $@ -fu {1}"