Sharing how I integrate systemctl is-system-running
into the prompt
#2383
Lockszmith-GH
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sharing this one, as it doesn't seem to be common, and yet I find is extremely useful.
On my
systemd
linux machines, in other prompt environments I used to have a section showing the status returned fromsystemd is-system-running
(except therunning
state, which is the normal one)This is useful when the system suddenly gets to a
degraded
state.the segment code looks like this:
This link will take you to my oh-my-posh config, which includes the above, which is based on the
powerlevel10k_rainbow
theme.Beta Was this translation helpful? Give feedback.
All reactions