mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-01 20:17:50 +08:00
Compare commits
2 Commits
4d1202c70c
...
00f3fa2c40
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00f3fa2c40 | ||
|
|
bcc3ee8ce8 |
@ -1,3 +1,6 @@
|
|||||||
|
# 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 "${(U)unit}:" || echo "$unit:"
|
[[ -n "$ZSH_THEME_SYSTEMD_PROMPT_CAPS" ]] && echo -n "${(U)unit}:" || echo -n "$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