diff options
author | Ben Sima <ben@bsima.me> | 2022-03-15 13:16:02 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2022-03-15 13:16:02 -0400 |
commit | 2ee7f97cc4ae24fdfb0db01c97b461de1e756e2f (patch) | |
tree | 1d89c506c6a6e3449a2eec89c5a0927b12f44524 /sys | |
parent | c903f92876c3af9eabc8edba1245f8d06e99c8dc (diff) |
fzf improvements
Diffstat (limited to 'sys')
-rwxr-xr-x | sys | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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}" |