From cfba74467f5145c1428fd149cc05f16721da33a2 Mon Sep 17 00:00:00 2001 From: Amy Retzerau Date: Tue, 21 Jul 2026 11:22:28 +0000 Subject: [PATCH] feat: added zmx to p10k --- .config/zsh_custom/10-p10k.zsh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.config/zsh_custom/10-p10k.zsh b/.config/zsh_custom/10-p10k.zsh index 5cac3c0..7d8d6a8 100644 --- a/.config/zsh_custom/10-p10k.zsh +++ b/.config/zsh_custom/10-p10k.zsh @@ -37,6 +37,12 @@ # prompt_char # prompt symbol ) + function prompt_my_zmx_session() { + if [[ -n $ZMX_SESSION ]]; then + p10k segment -b '%k' -f '%f' -t "[$ZMX_SESSION]" + fi + } + # The list of segments shown on the right. Fill it with less important segments. # Right prompt on the last prompt line (where you are typing your commands) gets # automatically hidden when the input line reaches it. Right prompt above the @@ -110,6 +116,7 @@ # battery # internal battery # wifi # wifi speed # example # example user-defined segment (see prompt_example function below) + my_zmx_session ) # Defines character set used by powerlevel10k. It's best to let `p10k configure` set it for you.