Add colors to systemctl

This commit is contained in:
Digital Studium 2024-03-29 10:42:35 +03:00
parent 2f78def1a0
commit 3e5c9b4d41
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
1.5
1.6

2
s
View File

@ -5,7 +5,7 @@ cat > /tmp/.dialogrc << EOL
# Item color
tag_color = (BLACK,WHITE,ON)
EOL
service=$(systemctl list-units --type service --all --plain --quiet | awk '{ print $1 }' | fzf --multi --cycle --reverse --preview 'systemctl status {1}')
service=$(systemctl list-units --type service --all --plain --quiet | awk '{ print $1 }' | fzf --multi --cycle --reverse --preview 'SYSTEMD_COLORS=1 systemctl status --no-pager {1}')
set +ex
action=$(DIALOGRC=/tmp/.dialogrc dialog --stdout --erase-on-exit --menu "Choose the action for $service" 10 40 0 "Start" 1 "Stop" 2 "Disable" 3 "Enable" 4)