repos / zmx

session persistence for terminal processes
git clone https://github.com/neurosnap/zmx.git

commit
18d9fc7
parent
16d66af
author
Sebastian Berns
date
2026-01-07 23:21:45 -0500 EST
Add powerlevel10k zsh theme instructions (#40)

1 files changed,  +15, -0
M README.md
+15, -0
 1@@ -108,6 +108,21 @@ if [[ -n $ZMX_SESSION ]]; then
 2 fi
 3 ```
 4 
 5+### powerlevel10k zsh theme
 6+
 7+[powerlevel10k](https://github.com/romkatv/powerlevel10k) is a theme for zsh that overwrites the default prompt statusline.
 8+
 9+Place this in `.zshrc`:
10+
11+```bash
12+function prompt_my_zmx_session() {
13+  if [[ -n $ZMX_SESSION ]]; then
14+    p10k segment -b '%k' -f '%f' -t "[$ZMX_SESSION]"
15+  fi
16+}
17+POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS+=my_zmx_session
18+```
19+
20 ### oh-my-posh
21 
22 [oh-my-posh](https://ohmyposh.dev) is a popular shell themeing and prompt engine. This code will display an icon and session name as part of the prompt if (and only if) you have zmx active: