mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-24 01:37:27 +08:00
Compare commits
No commits in common. "00f3fa2c40c707c84d3dc416a1e1db25d78fcfaf" and "4d1202c70cc1bd6715974115c9a154e79eb51fdd" have entirely different histories.
00f3fa2c40
...
4d1202c70c
@ -1,6 +1,3 @@
|
|||||||
# Define SHORT_HOST if not defined (%m = host name up to first .)
|
|
||||||
SHORT_HOST=${SHORT_HOST:-${(%):-%m}}
|
|
||||||
|
|
||||||
function _start_agent() {
|
function _start_agent() {
|
||||||
local agents
|
local agents
|
||||||
local -a identities
|
local -a identities
|
||||||
|
|||||||
@ -78,7 +78,7 @@ function systemd_prompt_info {
|
|||||||
local unit
|
local unit
|
||||||
for unit in $@; do
|
for unit in $@; do
|
||||||
echo -n "$ZSH_THEME_SYSTEMD_PROMPT_PREFIX"
|
echo -n "$ZSH_THEME_SYSTEMD_PROMPT_PREFIX"
|
||||||
[[ -n "$ZSH_THEME_SYSTEMD_PROMPT_CAPS" ]] && echo -n "${(U)unit}:" || echo -n "$unit:"
|
[[ -n "$ZSH_THEME_SYSTEMD_PROMPT_CAPS" ]] && echo "${(U)unit}:" || echo "$unit:"
|
||||||
if systemctl is-active $unit &>/dev/null; then
|
if systemctl is-active $unit &>/dev/null; then
|
||||||
echo -n "$ZSH_THEME_SYSTEMD_PROMPT_ACTIVE"
|
echo -n "$ZSH_THEME_SYSTEMD_PROMPT_ACTIVE"
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user